33 #ifndef vtkOpenGLState_h
34 #define vtkOpenGLState_h
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 std::vector<vtkOpenGLTextureCoordinateProcessingUnit> *
TCPU;
496 std::vector<vtkOpenGLTextureImageUnit> *
TIU;
499 GLfloat DepthRange[2];
507 GLfloat ColorMatrix[16];
531 GLfloat LightModelAmbient[4];
535 std::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,
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
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
#define VTKRENDERINGOPENGL_EXPORT
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