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