|
Author |
Topic: OpenGL commands (Read 432 times) |
|
charmhaste
|
OpenGL commands
« on: Mar 13th, 2005, 12:42am » |
|
glMultMatrix()? Hello, I am working on a Rigid Body simulator in processing, and i was wondering how I would incorporate my own custom Transformation matrix in Processing. In OpenGL for C++, the command is glMultMatrix(). This will put a custom matrix on the stack, which is what i need to do. However I am having trouble finding how to access this primitive command behind the Processing user interface. thanks
|
|
|
|
fry
|
Re: OpenGL commands
« Reply #1 on: Mar 13th, 2005, 12:56am » |
|
applyMatrix() (which takes 16 floats for the 4x4 matrix) is the command you're looking for. and resetMatrix() is identical to glLoadIdentity().
|
|
|
|
charmhaste
|
Re: OpenGL commands
« Reply #2 on: Mar 13th, 2005, 2:53am » |
|
I am assuming that it takes a double array of floats, correct? thanks Fry
|
|
|
|
charmhaste
|
Re: OpenGL commands
« Reply #3 on: Mar 13th, 2005, 3:41am » |
|
when i use this command i get this compilation error Semantic Error: No method named "applyMatrix" was found in type "Temporary_9902_8384$World". What ever am i supposed to do now? thanks
|
|
|
|
fry
|
Re: OpenGL commands
« Reply #4 on: Mar 13th, 2005, 6:54am » |
|
no, it takes 16 floats, not an array.
|
|
|
|
|