33 #ifndef __vtkOpenGLState_h
34 #define __vtkOpenGLState_h
37 #include <vtkstd/vector>
101 class vtkOpenGLTextureObjectState
106 static const int n=10;
110 GLfloat BorderColor[4];
115 GLfloat TexturePriority;
116 GLboolean TextureResident;
137 GLint DepthTextureMode;
138 GLint TextureCompareMode;
139 GLint TextureCompareFunc;
140 GLboolean GenerateMipmap;
367 void PrintSelf(ostream &os,
382 GLfloat CurrentColor[4];
385 GLfloat CurrentNormal[3];
387 GLfloat CurrentRasterPosition[4];
389 GLfloat CurrentRasterColor[4];
396 GLfloat CurrentSecondaryColor[4];
397 GLfloat CurrentFogCoordinate[3];
400 GLfloat CurrentRasterSecondaryColor[4];
484 GLfloat ModelViewMatrix[16];
487 GLfloat ProjectionMatrix[16];
492 vtkstd::vector<vtkOpenGLTextureCoordinateProcessingUnit> *
TCPU;
496 vtkstd::vector<vtkOpenGLTextureImageUnit> *
TIU;
499 GLfloat DepthRange[2];
507 GLfloat ColorMatrix[16];
531 GLfloat LightModelAmbient[4];
535 vtkstd::vector<vtkOpenGLLightState> *
Lights;
554 GLint PolygonMode[2];
629 GLfloat BlendColor[4];
654 GLboolean ColorWriteMask[4];
657 GLfloat ColorClearValue[4];
661 GLfloat AccumClearValue[4];
729 GLboolean DeleteStatus;
730 GLboolean CompileStatus;
731 vtkgl::GLchar *ShaderLogInfo;
733 vtkgl::GLchar *ShaderSource;
734 GLint ShaderSourceLength;
740 GLboolean DeleteStatus;
741 GLboolean LinkStatus;
742 GLboolean ValidateStatus;
743 GLint *AttachedShaders;
745 GLint ActiveUniforms;
746 GLint ActiveUniformMaxLength;
747 GLint ActiveAttributes;
748 GLint ActiveAttributesMaxLength;
753 GLfloat CurrentVertexAttrib[16][4];
800 GLfloat PointSizeRange[2];
802 GLfloat LineWidthRange[2];
822 GLfloat AliasedPointSizeRange[2];
823 GLfloat AliasedLineWidthRange[2];
830 GLint MaxConvolutionWidth[3];
831 GLint MaxConvolutionHeight[2];
897 void UpdateCurrentProgram();
898 void UpdateShader(
size_t i);
900 void ColorBufferToStream(ostream &os,GLint colorBuffer);
901 const char *ErrorCodeToString();
902 const char *BlendFuncToString(GLint blendFunc);
903 const char *BlendEquationToString(GLint blendEquation);
904 const char *LogicOpModeToString();
905 const char *ListModeToString();
906 const char *BooleanToString(GLint booleanValue);
907 const char *ShadeModelToString();
908 const char *CullFaceModeToString();
909 const char *FrontFaceToString();
910 const char *PolygonModeToString(GLint polygonMode);
911 const char *AlphaTestFuncToString();
912 const char *DepthFuncToString();
913 const char *RenderModeToString();
914 const char *MatrixModeToString();
916 const char *ValueToString(GLint
value,
918 const char *stringTable[],
921 void PrintMatrix(ostream &os,