33 #ifndef __vtkOpenGLState_h
34 #define __vtkOpenGLState_h
36 #include "vtkRenderingOpenGLModule.h"
102 class vtkOpenGLTextureObjectState
107 static const int n=10;
111 GLfloat BorderColor[4];
116 GLfloat TexturePriority;
117 GLboolean TextureResident;
138 GLint DepthTextureMode;
139 GLint TextureCompareMode;
140 GLint TextureCompareFunc;
141 GLboolean GenerateMipmap;
368 void PrintSelf(ostream &os,
383 GLfloat CurrentColor[4];
386 GLfloat CurrentNormal[3];
388 GLfloat CurrentRasterPosition[4];
390 GLfloat CurrentRasterColor[4];
397 GLfloat CurrentSecondaryColor[4];
398 GLfloat CurrentFogCoordinate[3];
401 GLfloat CurrentRasterSecondaryColor[4];
485 GLfloat ModelViewMatrix[16];
488 GLfloat ProjectionMatrix[16];
493 std::vector<vtkOpenGLTextureCoordinateProcessingUnit> *
TCPU;
497 std::vector<vtkOpenGLTextureImageUnit> *
TIU;
500 GLfloat DepthRange[2];
508 GLfloat ColorMatrix[16];
532 GLfloat LightModelAmbient[4];
536 std::vector<vtkOpenGLLightState> *
Lights;
555 GLint PolygonMode[2];
630 GLfloat BlendColor[4];
655 GLboolean ColorWriteMask[4];
658 GLfloat ColorClearValue[4];
662 GLfloat AccumClearValue[4];
730 GLboolean DeleteStatus;
731 GLboolean CompileStatus;
732 vtkgl::GLchar *ShaderLogInfo;
734 vtkgl::GLchar *ShaderSource;
735 GLint ShaderSourceLength;
741 GLboolean DeleteStatus;
742 GLboolean LinkStatus;
743 GLboolean ValidateStatus;
744 GLint *AttachedShaders;
746 GLint ActiveUniforms;
747 GLint ActiveUniformMaxLength;
748 GLint ActiveAttributes;
749 GLint ActiveAttributesMaxLength;
754 GLfloat CurrentVertexAttrib[16][4];
801 GLfloat PointSizeRange[2];
803 GLfloat LineWidthRange[2];
823 GLfloat AliasedPointSizeRange[2];
824 GLfloat AliasedLineWidthRange[2];
831 GLint MaxConvolutionWidth[3];
832 GLint MaxConvolutionHeight[2];
898 void UpdateCurrentProgram();
899 void UpdateShader(
size_t i);
901 void ColorBufferToStream(ostream &os,GLint colorBuffer);
902 const char *ErrorCodeToString();
903 const char *BlendFuncToString(GLint blendFunc);
904 const char *BlendEquationToString(GLint blendEquation);
905 const char *LogicOpModeToString();
906 const char *ListModeToString();
907 const char *BooleanToString(GLint booleanValue);
908 const char *ShadeModelToString();
909 const char *CullFaceModeToString();
910 const char *FrontFaceToString();
911 const char *PolygonModeToString(GLint polygonMode);
912 const char *AlphaTestFuncToString();
913 const char *DepthFuncToString();
914 const char *RenderModeToString();
915 const char *MatrixModeToString();
917 const char *ValueToString(GLint
value,
919 const char *stringTable[],
922 void PrintMatrix(ostream &os,