Hello,
I was wondering if anyone made any additional utilities to complement
HOpenGL. For example, I was wondering why there weren't any math operations
such as "negate" defined on Vector3, or why it wasn't made an instance of
Num in HOpenGL.
Thanks,
Jamin
--
View this message in context: http://www.nabble.com/any-auxillary-hopengl-modules--tf2966417.html#a8299870
Sent from the Haskell - HOpenGL mailing list archive at Nabble.com.
In C OpenGL, you can do something like this to use matrices for computation
without affecting context:
glMatrixMode (GL_MODELVIEW) ;
glPushMatrix () ;
glLoadMatrix (your_matrix) ;
// do whatever you want with your your matrix
// for exampl glMultMatrix (your_matrix2) ;
...
// at the end of your calculations use
glGetFloatv (GL_MODELVIEW_MATRIX, your_matrix_result) ;
glPopMatrix () ; // nothing has changed !!!
I'm not exactly sure how this is done with HOpenGL. i.e., how can I get the
result of a matrix transformation not effecting the MODELVIEW, etc.
matrices? Could someone give an example?
Thanks,
Jamin
--
View this message in context: http://www.nabble.com/%28not-%29-using-preservingMatrix-tf2926697.html#a818…
Sent from the Haskell - HOpenGL mailing list archive at Nabble.com.
Hello,
I am trying to use the GLU function unProject, which
returns a Vertex3, but I want a Vector3. How do I
convert Vertex3, or get at the coordinate values?
Jamin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com