#include <vtkOpenGLStateCache.h>
Collaboration diagram for vtkOpenGLStateCache:

This simply checks for redundancies in state-change requests and only calls the real OpenGL call if there has in fact been a change. This cannot, however, fix problems with the ordering of calls.
Definition at line 109 of file vtkOpenGLStateCache.h.
Public Member Functions | |
| vtkOpenGLStateCache () | |
| ~vtkOpenGLStateCache () | |
| void | Initialize () |
| void | glEnable (GLenum e) |
| void | glDisable (GLenum e) |
| void | glAlphaFunc (GLenum e, GLclampf cf) |
| void | glBlendFunc (GLenum e, GLenum e1) |
| void | glDepthFunc (GLenum e) |
| void | glTexEnvf (GLenum e, GLenum e1, GLfloat f) |
| void | glLightModeli (GLenum e, GLint i) |
| void | glLightModelfv (GLenum e, GLfloat *fv) |
| void | glLightfv (GLenum light, GLenum pname, const GLfloat *params) |
| void | glLightf (GLenum light, GLenum pname, GLfloat f) |
| void | glLighti (GLenum light, GLenum pname, GLint f) |
| void | glMaterialfv (GLenum face, GLenum pname, const GLfloat *params) |
| void | glShadeModel (GLenum e) |
| void | glClearColor (GLclampf r, GLclampf g, GLclampf b, GLclampf a) |
| void | glClearDepth (GLclampd d) |
| void | glDepthMask (GLenum e) |
| void | glCullFace (GLenum e) |
| void | glClear (GLbitfield b) |
| void | glDrawBuffer (GLenum e) |
| void | glMatrixMode (GLenum e) |
| void | glViewport (GLint llx, GLint lly, GLint u, GLint v) |
| void | glScissor (GLint llx, GLint lly, GLint u, GLint v) |
| void | glClipPlane (GLenum e, const GLdouble *eqn) |
| void | glColorMaterial (GLenum face, GLenum mode) |
| void | glPointSize (GLfloat f) |
| void | glLineWidth (GLfloat f) |
| void | glLineStipple (GLint factor, GLushort pattern) |
| void | glDepthRange (GLclampd nearval, GLclampd farval) |
Public Attributes | |
| char | Enable_buckets [0xDE1-0xB10+1] |
| char | Enable_GL_LIGHT_buckets [8] |
| char | Enable_GL_CLIP_PLANE_buckets [8] |
| GLclampf | AlphaFunc_bucket |
| GLenum | BlendFunc_bucket |
| GLenum | DepthFunc_bucket |
| GLfloat | TexEnvf_MODE_bucket |
| GLint | LightModeli_LIGHT_MODEL_TWO_SIDE_bucket |
| GLfloat | LightModelfv_LIGHT_MODEL_AMBIENT_bucket [3] |
| GLfloat | Lightfv_buckets [8 *4 *8] |
| GLfloat | Lightf_buckets [8 *8] |
| GLint | Lighti_SPOT_CUTOFF_buckets [8] |
| GLfloat | Materialfv_buckets [8 *8 *4] |
| GLenum | ShadeModel_bucket |
| GLclampf | ClearColor_buckets [4] |
| GLclampd | ClearDepth_bucket |
| GLclampf | DepthMask_bucket |
| GLenum | CullFace_bucket |
| GLenum | DrawBuffer_bucket |
| GLenum | MatrixMode_bucket |
| GLint | Viewport_bucket [4] |
| GLint | Scissor_bucket [4] |
| GLdouble | ClipPlane_bucket [4 *GL_MAX_CLIP_PLANES] |
| GLenum | ColorMaterial_bucket [8] |
| GLfloat | PointSize_bucket |
| GLfloat | LineWidth_bucket |
| GLint | LineStipple_FACTOR_bucket |
| GLushort | LineStipple_PATTERN_bucket |
| GLclampd | DepthRange_NEAR_bucket |
| GLclampd | DepthRange_FAR_bucket |
Static Public Attributes | |
| vtkOpenGLStateCache * | CurrentGLCache |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 142 of file vtkOpenGLStateCache.h. References Enable_buckets, Enable_GL_CLIP_PLANE_buckets, and Enable_GL_LIGHT_buckets. |
|
|
Definition at line 177 of file vtkOpenGLStateCache.h. References Enable_buckets, Enable_GL_CLIP_PLANE_buckets, and Enable_GL_LIGHT_buckets. |
|
||||||||||||
|
Definition at line 215 of file vtkOpenGLStateCache.h. References AlphaFunc_bucket. |
|
||||||||||||
|
Definition at line 226 of file vtkOpenGLStateCache.h. References BlendFunc_bucket. |
|
|
Definition at line 239 of file vtkOpenGLStateCache.h. References DepthFunc_bucket. |
|
||||||||||||||||
|
Definition at line 250 of file vtkOpenGLStateCache.h. References TexEnvf_MODE_bucket. |
|
||||||||||||
|
Definition at line 265 of file vtkOpenGLStateCache.h. References LightModeli_LIGHT_MODEL_TWO_SIDE_bucket. |
|
||||||||||||
|
Definition at line 276 of file vtkOpenGLStateCache.h. References LightModelfv_LIGHT_MODEL_AMBIENT_bucket. |
|
||||||||||||||||
|
Definition at line 296 of file vtkOpenGLStateCache.h. References Lightfv_buckets. |
|
||||||||||||||||
|
Definition at line 321 of file vtkOpenGLStateCache.h. References Lightf_buckets, and Lighti_SPOT_CUTOFF_buckets. |
|
||||||||||||||||
|
Definition at line 336 of file vtkOpenGLStateCache.h. References Lightf_buckets, and Lighti_SPOT_CUTOFF_buckets. |
|
||||||||||||||||
|
Definition at line 358 of file vtkOpenGLStateCache.h. References Materialfv_buckets. |
|
|
Definition at line 399 of file vtkOpenGLStateCache.h. References ShadeModel_bucket. |
|
||||||||||||||||||||
|
Definition at line 409 of file vtkOpenGLStateCache.h. |
|
|
Definition at line 426 of file vtkOpenGLStateCache.h. References ClearDepth_bucket. |
|
|
Definition at line 436 of file vtkOpenGLStateCache.h. References DepthMask_bucket. |
|
|
Definition at line 448 of file vtkOpenGLStateCache.h. References CullFace_bucket. |
|
|
Definition at line 458 of file vtkOpenGLStateCache.h. |
|
|
Definition at line 464 of file vtkOpenGLStateCache.h. References DrawBuffer_bucket. |
|
|
Definition at line 474 of file vtkOpenGLStateCache.h. References MatrixMode_bucket. |
|
||||||||||||||||||||
|
Definition at line 482 of file vtkOpenGLStateCache.h. |
|
||||||||||||||||||||
|
Definition at line 497 of file vtkOpenGLStateCache.h. |
|
||||||||||||
|
Definition at line 514 of file vtkOpenGLStateCache.h. References ClipPlane_bucket. |
|
||||||||||||
|
Definition at line 533 of file vtkOpenGLStateCache.h. References ColorMaterial_bucket. |
|
|
Definition at line 541 of file vtkOpenGLStateCache.h. References PointSize_bucket. |
|
|
Definition at line 548 of file vtkOpenGLStateCache.h. References LineWidth_bucket. |
|
||||||||||||
|
Definition at line 556 of file vtkOpenGLStateCache.h. References LineStipple_FACTOR_bucket, and LineStipple_PATTERN_bucket. |
|
||||||||||||
|
Definition at line 569 of file vtkOpenGLStateCache.h. References DepthRange_FAR_bucket, and DepthRange_NEAR_bucket. |
|
|
Definition at line 112 of file vtkOpenGLStateCache.h. |
|
|
Definition at line 134 of file vtkOpenGLStateCache.h. Referenced by glDisable(), and glEnable(). |
|
|
Definition at line 135 of file vtkOpenGLStateCache.h. Referenced by glDisable(), and glEnable(). |
|
|
Definition at line 136 of file vtkOpenGLStateCache.h. Referenced by glDisable(), and glEnable(). |
|
|
Definition at line 214 of file vtkOpenGLStateCache.h. Referenced by glAlphaFunc(). |
|
|
Definition at line 225 of file vtkOpenGLStateCache.h. Referenced by glBlendFunc(). |
|
|
Definition at line 238 of file vtkOpenGLStateCache.h. Referenced by glDepthFunc(). |
|
|
Definition at line 249 of file vtkOpenGLStateCache.h. Referenced by glTexEnvf(). |
|
|
Definition at line 264 of file vtkOpenGLStateCache.h. Referenced by glLightModeli(). |
|
|
Definition at line 275 of file vtkOpenGLStateCache.h. Referenced by glLightModelfv(). |
|
|
Definition at line 295 of file vtkOpenGLStateCache.h. Referenced by glLightfv(). |
|
|
Definition at line 319 of file vtkOpenGLStateCache.h. Referenced by glLightf(), and glLighti(). |
|
|
Definition at line 320 of file vtkOpenGLStateCache.h. Referenced by glLightf(), and glLighti(). |
|
|
Definition at line 357 of file vtkOpenGLStateCache.h. Referenced by glMaterialfv(). |
|
|
Definition at line 398 of file vtkOpenGLStateCache.h. Referenced by glShadeModel(). |
|
|
Definition at line 408 of file vtkOpenGLStateCache.h. |
|
|
Definition at line 425 of file vtkOpenGLStateCache.h. Referenced by glClearDepth(). |
|
|
Definition at line 435 of file vtkOpenGLStateCache.h. Referenced by glDepthMask(). |
|
|
Definition at line 447 of file vtkOpenGLStateCache.h. Referenced by glCullFace(). |
|
|
Definition at line 463 of file vtkOpenGLStateCache.h. Referenced by glDrawBuffer(). |
|
|
Definition at line 473 of file vtkOpenGLStateCache.h. Referenced by glMatrixMode(). |
|
|
Definition at line 481 of file vtkOpenGLStateCache.h. |
|
|
Definition at line 496 of file vtkOpenGLStateCache.h. |
|
|
Definition at line 513 of file vtkOpenGLStateCache.h. Referenced by glClipPlane(). |
|
|
Definition at line 532 of file vtkOpenGLStateCache.h. Referenced by glColorMaterial(). |
|
|
Definition at line 540 of file vtkOpenGLStateCache.h. Referenced by glPointSize(). |
|
|
Definition at line 547 of file vtkOpenGLStateCache.h. Referenced by glLineWidth(). |
|
|
Definition at line 554 of file vtkOpenGLStateCache.h. Referenced by glLineStipple(). |
|
|
Definition at line 555 of file vtkOpenGLStateCache.h. Referenced by glLineStipple(). |
|
|
Definition at line 567 of file vtkOpenGLStateCache.h. Referenced by glDepthRange(). |
|
|
Definition at line 568 of file vtkOpenGLStateCache.h. Referenced by glDepthRange(). |