GL Functions¶
Functions that wrap OpenGL calls to accept Imath vectors and matrices.
Example:
#include <Imath/ImathGL.h>
void
gl_example()
{
Imath::M44f M;
glPushMatrix (M);
Imath::V3f v (0.0f, 1.0f, 2.0f);
glVertex (v);
}
Warning
doxygenfunction: Unable to resolve multiple matches for function “glVertex” with arguments (const Imath::V2f &v) in doxygen xml output for project “Imath” from directory: doxyxml/. Potential matches:
- void glVertex(const Imath::V2f&)
- void glVertex(const Imath::V3f&)
Warning
doxygenfunction: Unable to resolve multiple matches for function “glVertex” with arguments (const Imath::V3f &v) in doxygen xml output for project “Imath” from directory: doxyxml/. Potential matches:
- void glVertex(const Imath::V2f&)
- void glVertex(const Imath::V3f&)
Warning
doxygenfunction: Unable to resolve multiple matches for function “glMultMatrix” with arguments (const Imath::M44f &m) in doxygen xml output for project “Imath” from directory: doxyxml/. Potential matches:
- void glMultMatrix(const Imath::M44f *)
- void glMultMatrix(const Imath::M44f&)
Warning
doxygenfunction: Unable to resolve multiple matches for function “glMultMatrix” with arguments (const Imath::M44f *m) in doxygen xml output for project “Imath” from directory: doxyxml/. Potential matches:
- void glMultMatrix(const Imath::M44f *)
- void glMultMatrix(const Imath::M44f&)
Warning
doxygenfunction: Unable to resolve multiple matches for function “glLoadMatrix” with arguments (const Imath::M44f &m) in doxygen xml output for project “Imath” from directory: doxyxml/. Potential matches:
- void glLoadMatrix(const Imath::M44f *)
- void glLoadMatrix(const Imath::M44f&)
Warning
doxygenfunction: Unable to resolve multiple matches for function “glLoadMatrix” with arguments (const Imath::M44f *m) in doxygen xml output for project “Imath” from directory: doxyxml/. Potential matches:
- void glLoadMatrix(const Imath::M44f *)
- void glLoadMatrix(const Imath::M44f&)
-
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().