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: /build/ilmbase-TFRjEc/ilmbase-3.1.11/obj-x86_64-linux-gnu/website/doxygen/xml. 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: /build/ilmbase-TFRjEc/ilmbase-3.1.11/obj-x86_64-linux-gnu/website/doxygen/xml. Potential matches:

- void glVertex(const Imath::V2f&)
- void glVertex(const Imath::V3f&)
void glNormal(const Imath::V3f &n)

Call glNormal3f.

void glColor(const Imath::V3f &c)

Call glColor3f.

void glTranslate(const Imath::V3f &t)

Call glTranslatef.

void glTexCoord(const Imath::V2f &t)

Call glTexCoord2f.

void throwBadMatrix(const Imath::M44f &m)

Throw an exception if m is not a valid matrix for GL.

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: /build/ilmbase-TFRjEc/ilmbase-3.1.11/obj-x86_64-linux-gnu/website/doxygen/xml. 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: /build/ilmbase-TFRjEc/ilmbase-3.1.11/obj-x86_64-linux-gnu/website/doxygen/xml. 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: /build/ilmbase-TFRjEc/ilmbase-3.1.11/obj-x86_64-linux-gnu/website/doxygen/xml. 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: /build/ilmbase-TFRjEc/ilmbase-3.1.11/obj-x86_64-linux-gnu/website/doxygen/xml. 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.

Public Functions

GLPushMatrix()
~GLPushMatrix()
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.

Public Functions

GLPushAttrib(GLbitfield mask)

call glPushAttrib()

~GLPushAttrib()

call glPopAttrib()

class GLBegin

A class object that wraps glBegin/glEnd.

The constructor calls glBegin(). The destructor calls glEnd().

Public Functions

GLBegin(GLenum mode)

Call glBegin()

~GLBegin()

Call glEnd()