10 #ifndef INCLUDED_IMATHGL_H
11 #define INCLUDED_IMATHGL_H
76 const float GL_FLOAT_MAX = 1.8e+19;
90 if (badFloat (m[0][0]) || badFloat (m[0][1]) || badFloat (m[0][2]) || badFloat (m[0][3]) ||
91 badFloat (m[1][0]) || badFloat (m[1][1]) || badFloat (m[1][2]) || badFloat (m[1][3]) ||
92 badFloat (m[2][0]) || badFloat (m[2][1]) || badFloat (m[2][2]) || badFloat (m[2][3]) ||
93 badFloat (m[3][0]) || badFloat (m[3][1]) || badFloat (m[3][2]) || badFloat (m[3][3]))
94 throw std::invalid_argument (
"GL matrix overflow");
129 IMATH_INTERNAL_NAMESPACE_HEADER_ENTER
174 IMATH_INTERNAL_NAMESPACE_HEADER_EXIT
GLPushAttrib(GLbitfield mask)
call glPushAttrib()
Matrix44< float > M44f
4x4 matrix of float
void glColor(const IMATH_INTERNAL_NAMESPACE::V3f &c)
Call glColor3f.
GLAPI void GL_APIENTRY glDisable(GLenum cap)
void glTranslate(const IMATH_INTERNAL_NAMESPACE::V3f &t)
Call glTranslatef.
GLAPI void GL_APIENTRY glBindTexture(GLenum target, GLuint texture)
~GLPushAttrib()
call glPopAttrib()
void throwBadMatrix(const IMATH_INTERNAL_NAMESPACE::M44f &m)
Throw an exception if m is not a valid matrix for GL.
void glTexCoord(const IMATH_INTERNAL_NAMESPACE::V2f &t)
Call glTexCoord2f.
Vec2< float > V2f
Vec2 of float.
Vec3< float > V3f
Vec3 of float.
void glNormal(const IMATH_INTERNAL_NAMESPACE::V3f &n)
Call glNormal3f.
void glMultMatrix(const IMATH_INTERNAL_NAMESPACE::M44f &m)
Call glMultmatrixf. Throw an exception if m is not a valid matrix for GL.
void glLoadMatrix(const IMATH_INTERNAL_NAMESPACE::M44f &m)
Call glLoadmatrixf. Throw an exception if m is not a valid matrix for GL.
void glDisableTexture()
Disable GL textures.
GLBegin(GLenum mode)
Call glBegin()
void glVertex(const IMATH_INTERNAL_NAMESPACE::V3f &v)
Call glVertex3f.
IMATH_HOSTDEVICE bool finitef(float f) IMATH_NOEXCEPT