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