34 #ifndef vtkOpenGLState_h
35 #define vtkOpenGLState_h
37 #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,
GLboolean MultiSampleEnabled
GLint StencilBackPassDepthPass
GLint StencilBackValueMask
GLint TextureCoordArrayStride
vtkOpenGLRGBAPixelMapState PixelMapRedToRed
GLboolean PostConvolutionColorTableEnabled
GLboolean PointSmoothEnabled
void PrintSelf(ostream &os, vtkIndent indent)
const char * BufferUsageToString()
GLint MaxClientAttribStackDepth
GLfloat PointFadeThresholdSize
GLint MaxColorMatrixStackDepth
GLboolean LightModelLocalViewer
GLenum PixelPackBufferBinding
GLint ActiveAttributeMaxLength
GLint MaxVertexUniformComponents
GLubyte * ShadingLanguageVersion
GLint FogCoordinateArrayStride
GLint StencilPassDepthFail
vtkOpenGLTexGenState TextureGenT
vtkOpenGLRenderWindow * Context
GLint TextureCoordArrayBufferBinding
std::vector< GLint > * DrawBuffers
GLuint StencilBackWriteMask
vtkOpenGLRGBAPixelMapState PixelMapColorIndexToAlpha
void PrintSelf(ostream &os, vtkIndent indent)
GLint VertexArrayBufferBinding
GLint ElementArrayBufferBinding
GLboolean NormalArrayEnabled
GLvoid * IndexArrayPointer
GLint MaxTextureStackDepth
GLint VertexAttribArrayBufferBinding
GLboolean PolygonOffsetLineEnabled
GLvoid * BufferMapPointer
GLvoid * SecondaryColorArrayPointer
GLint EdgeFlagArrayStride
GLint SecondaryColorArrayType
GLint ProjectionStackDepth
GLboolean TextureCoordArrayEnabled
vtkOpenGLIndexPixelMapState PixelMapColorIndexToColorIndex
GLint CompressedTextureFormats
GLint PerpectiveCorrectionHint
GLboolean ScissorTestEnabled
GLenum PixelUnpackBufferBinding
GLint SecondaryColorArrayStride
GLint VertexAttribArraySize
GLboolean PolygonSmoothEnabled
GLint ModelViewStackDepth
GLboolean IndexArrayEnabled
GLboolean Texture1DEnabled
GLint IndexArrayBufferBinding
vtkOpenGLTexGenState TextureGenS
void PrintSelf(ostream &os, vtkIndent indent)
vtkOpenGLComponentTransform RedTransform
GLboolean IndexLogicOpEnabled
GLboolean VertexAttribArrayEnabled
GLvoid * FeedbackBufferPointer
GLint SecondaryColorArraySize
GLvoid * VertexArrayPointer
GLboolean PostColorMatricColorTableEnabled
virtual void Update()
Updates the extensions string.
GLvoid * VertexAttribArrayPointer
GLint SelectionBufferSize
GLint TextureCoordArraySize
GLint ColorMatrixStackDepth
GLboolean VertexProgramPointSizeEnabled
vtkOpenGLPixelControl Unpack
GLboolean Texture3DEnabled
GLvoid * TextureCoordArrayPointer
GLvoid * SelectionBufferPointer
GLint MaxProjectionStackDepth
GLint VertexAttribArrayType
GLboolean ColorMaterialEnabled
GLfloat LinearAttenuation
vtkOpenGLComponentTransform BlueTransform
GLint FogCoordinateSource
std::vector< GLboolean > * LightEnabled
GLint MaxVertexTextureImageUnits
void BufferAccessFlagsToStream(ostream &os)
GLint PointSpriteCoordOrigin
std::vector< vtkOpenGLTextureImageUnit > * TIU
void PrintSelf(ostream &os, vtkIndent indent)
GLint MaxColorAttachments
vtkOpenGLRGBAPixelMapState PixelMapColorIndexToRed
GLboolean CurrentRasterPositionValid
vtkOpenGLRGBAPixelMapState PixelMapColorIndexToGreen
GLboolean AlphaTestEnabled
GLint NumCompressedTextureFormats
GLfloat ConstantAttenuation
vtkOpenGLComponentTransform GreenTransform
vtkOpenGLPixelControl Pack
GLfloat CurrentRasterTextureCoords[4]
GLint EdgeFlagArrayBufferBinding
vtkOpenGLRGBAPixelMapState PixelMapBlueToBlue
GLboolean LineStippleEnabled
GLint NumberOfAttachedShaders
a simple class to control print indentation
GLfloat QuadraticAttenuation
GLfloat CurrentRasterIndex
GLboolean PolygonOffsetFillEnabled
std::vector< vtkOpenGLTextureImageUnitFixedPipelineState > * TextureImageUnitEnabled
vtkOpenGLMaterialState BackMaterial
GLint VertexAttribArrayStride
GLint NormalArrayBufferBinding
vtkOpenGLTexGenState TextureGenQ
GLboolean SecondaryColorArrayEnabled
GLint FogCoordinateArrayType
GLfloat PolygonOffsetFactor
vtkOpenGLBufferObjectState PixelUnpackBufferObject
std::vector< vtkOpenGLClipPlaneState > * ClipPlanes
GLboolean LightingEnabled
GLboolean DepthTestEnabled
GLboolean Texture2DEnabled
GLboolean PolygonOffsetPointEnabled
vtkOpenGLBufferObjectState PixelPackBufferObject
GLfloat PointSizeGranularity
GLint MaxTextureImageUnits
GLint ClientAtribStackDepth
std::vector< vtkOpenGLTextureCoordinateProcessingUnit > * TCPU
GLboolean VertexAttribArrayNormalized
GLint MaxCubeMapTextureSize
GLint TextureBindingCubeMap
GLfloat MaxTextureLODBias
vtkOpenGLFixePipelineState FixedPipeline
GLfloat CurrentMatrix[16]
GLint MaxFragmentUniformComponents
GLboolean SampleAlphaToOneEnabled
GLboolean CullFaceEnabled
std::vector< vtkOpenGLShaderState > * AttachedShaders
GLboolean SampleAlphaToCoverageEnabled
GLfloat CurrentRasterDistance
GLint StencilPassDepthPass
GLfloat LineWidthGranularity
GLboolean TextureCubeMapEnabled
GLint MaxCombinedTextureImageUnits
vtkOpenGLProgramState * CurrentProgramState
vtkOpenGLMaterialState FrontMaterial
GLint FragmentShaderDerivativeHint
GLboolean LightModelTwoSide
vtkOpenGLRGBAPixelMapState PixelMapGreenToGreen
GLint StencilBackPassDepthFail
vtkOpenGLIndexPixelMapState PixelMapStencilIndexToStencilIndex
GLboolean StencilTestEnabled
GLboolean PolygonStippleEnabled
GLboolean ColorSumEnabled
GLboolean SampleCoverageInvert
GLint MaxModelViewStackDepth
GLint CompressedImageSize
GLint TextureCompressionHint
GLint ActiveUniformMaxLength
GLfloat PolygonOffsetUnits
const char * BufferAccessToString()
GLboolean ColorArrayEnabled
vtkOpenGLTexGenState TextureGenR
GLint ColorMaterialParameter
vtkOpenGLRGBAPixelMapState PixelMapColorIndexToBlue
GLvoid * NormalArrayPointer
GLfloat PointDistanceAttenuation
GLboolean LineSmoothEnabled
GLvoid * ColorArrayPointer
GLint TextureCoordArrayType
GLboolean FogCoordinateArrayEnabled
GLint FogCoordArrayBufferBinding
GLboolean ColorTableEnabled
vtkOpenGLRGBAPixelMapState PixelMapAlphaToAlpha
GLfloat SampleCoverageValue
GLint MaxAttribStackDepth
GLboolean PointSpriteEnabled
GLint SecondaryColorArrayBufferBinding
GLfloat CurrentTextureCoords[4]
GLenum ClientActiveTexture
vtkOpenGLComponentTransform DepthTransform
GLint ColorArrayBufferBinding
GLboolean SampleCoverageEnabled
GLint MaxElementsVertices
const char * ShaderTypeToString()
GLboolean VertexArrayEnabled
GLvoid * FogCoordinateArrayPointer
GLboolean VertexProgramTwoSideEnabled
vtkOpenGLComponentTransform AlphaTransform
std::vector< vtkOpenGLLightState > * Lights
GLvoid * EdgeFlagArrayPointer
GLint lightModelColorControl
GLboolean ColorLogicOpEnabled