GL Functions¶
Functions that wrap OpenGL calls to accept Imath vectors and matrices.
#include <Imath/ImathGL.h>
Example:
#include <Imath/ImathGL.h>
void
gl_example ()
{
Imath::M44f M;
glPushMatrix (M);
Imath::V3f v (0.0f, 1.0f, 2.0f);
glVertex (v);
}
-
inline void throwBadMatrix(const Imath::M44f &m)¶
Throw an exception if m is not a valid matrix for GL.
-
inline void glMultMatrix(const Imath::M44f &m)¶
Call glMultmatrixf. Throw an exception if m is not a valid matrix for GL.
-
inline void glMultMatrix(const Imath::M44f *m)¶
Call glMultmatrixf. Throw an exception if m is not a valid matrix for GL.
-
inline void glLoadMatrix(const Imath::M44f &m)¶
Call glLoadmatrixf. Throw an exception if m is not a valid matrix for GL.
-
inline void glLoadMatrix(const Imath::M44f *m)¶
Call glLoadmatrixf. Throw an exception if m is not a valid matrix for GL.
-
class GLPushMatrix¶
A class object that pushes/pops the GL matrix.
This object assists with proper cleanup of the state when exceptions are thrown.
-
class GLPushAttrib¶
A class object that pushes/pops the current GL attribute state.
This object assists with proper cleanup of the state when exceptions are thrown.
-
class GLBegin¶
A class object that wraps glBegin/glEnd.
The constructor calls glBegin(). The destructor calls glEnd().