29 #ifndef __GRAPHICSHARDWAREINFO_H__
30 #define __GRAPHICSHARDWAREINFO_H__
61 Inst< SFBool > _initialized = 0,
62 Inst< SFString > _vendor = 0,
63 Inst< SFString > _renderer = 0,
64 Inst< SFString > _version = 0,
65 Inst< SFString > _shadingLanguageVersion = 0,
66 Inst< SFString > _extensions = 0,
67 Inst< SFInt32 > _max3dTextureSize = 0,
68 Inst< SFInt32 > _maxClientAttribStackDepth = 0,
69 Inst< SFInt32 > _maxAttribStackDepth = 0,
70 Inst< SFInt32 > _maxClipPlanes = 0,
71 Inst< SFInt32 > _maxColorMatrixStackDepth = 0,
72 Inst< SFInt32 > _maxCombinedTextureImageUnits = 0,
73 Inst< SFInt32 > _maxCubeMapTextureSize = 0,
74 Inst< SFInt32 > _maxDrawBuffers = 0,
75 Inst< SFInt32 > _maxElementsIndices = 0,
76 Inst< SFInt32 > _maxElementsVertices = 0,
77 Inst< SFInt32 > _maxEvalOrder = 0,
78 Inst< SFInt32 > _maxFragmentUniformComponents = 0,
79 Inst< SFInt32 > _maxLights = 0,
80 Inst< SFInt32 > _maxListNesting = 0,
81 Inst< SFInt32 > _maxModelviewStackDepth = 0,
82 Inst< SFInt32 > _maxNameStackDepth = 0,
83 Inst< SFInt32 > _maxPixelMapTable = 0,
84 Inst< SFInt32 > _maxProjectionStackDepth = 0,
85 Inst< SFInt32 > _maxTextureCoords = 0,
86 Inst< SFInt32 > _maxTextureImageUnits = 0,
87 Inst< SFInt32 > _maxTextureLODBias = 0,
88 Inst< SFInt32 > _maxTextureSize = 0,
89 Inst< SFInt32 > _maxTextureStackDepth = 0,
90 Inst< SFInt32 > _maxTextureUnits = 0,
91 Inst< SFInt32 > _maxVaryingFloats = 0,
92 Inst< SFInt32 > _maxVertexAttribs = 0,
93 Inst< SFInt32 > _maxVertexTextureImageUnits = 0,
94 Inst< SFInt32 > _maxVertexUniformComponents = 0,
95 Inst< SFInt32 > _maxViewportWidth = 0,
96 Inst< SFInt32 > _maxViewportHeight = 0 );
106 string shading_language_version;
109 H3DInt32 max_client_attrib_stack_depth;
112 H3DInt32 max_color_matrix_stack_depth;
113 H3DInt32 max_combined_texture_image_units;
119 H3DInt32 max_fragment_uniform_components;
125 H3DInt32 max_projection_stack_depth;
135 H3DInt32 max_vertex_texture_image_units;
136 H3DInt32 max_vertex_uniform_components;
141 H3DInt32 max_shader_storage_buffer_bindings;
142 H3DInt64 max_shader_storage_block_size;
143 bool support_ARB_texture_float;
144 bool support_ARB_depth_buffer_float;
145 bool support_EXT_packed_depth_stencil;
149 virtual void initialize();
154 static bool initializeInfo();
159 return info_initialized;
Contains the SFBool field class.
Contains the SFInt32 field class.
Contains the SFString field class.
Header file for X3DChildNode, X3D scene-graph node.
The GraphicsHardwareInfo class provides information about the graphics hardware the program is being ...
Definition: GraphicsHardwareInfo.h:56
H3DUniquePtr< SFInt32 > maxModelviewStackDepth
The maximum supported depth of the modelview matrix stack.
Definition: GraphicsHardwareInfo.h:305
H3DUniquePtr< SFString > extensions
A space-separated list of supported extensions to GL.
Definition: GraphicsHardwareInfo.h:206
H3DUniquePtr< SFInt32 > maxLights
The maximum number of lights.
Definition: GraphicsHardwareInfo.h:293
H3DUniquePtr< SFInt32 > maxColorMatrixStackDepth
The maximum supported depth of the color matrix stack.
Definition: GraphicsHardwareInfo.h:237
H3DUniquePtr< SFString > version
A version or release number.
Definition: GraphicsHardwareInfo.h:194
H3DUniquePtr< SFInt32 > maxVertexTextureImageUnits
The maximum supported texture image units that can be used to access texture maps from the vertex sha...
Definition: GraphicsHardwareInfo.h:388
H3DUniquePtr< SFInt32 > maxTextureStackDepth
The maximum supported depth of the texture matrix stack.
Definition: GraphicsHardwareInfo.h:356
H3DUniquePtr< SFInt32 > maxEvalOrder
The maximum equation order supported by 1D and 2D evaluators.
Definition: GraphicsHardwareInfo.h:279
H3DUniquePtr< SFInt32 > maxTextureSize
The value gives a rough estimate of the largest texture that the GL can handle.
Definition: GraphicsHardwareInfo.h:350
H3DUniquePtr< SFInt32 > maxElementsIndices
The recommended maximum number of vertex array indices.
Definition: GraphicsHardwareInfo.h:267
H3DUniquePtr< SFInt32 > maxAttribStackDepth
The maximum supported depth of the attribute stack.
Definition: GraphicsHardwareInfo.h:225
H3DUniquePtr< SFInt32 > maxProjectionStackDepth
The maximum supported depth of the projection matrix stack.
Definition: GraphicsHardwareInfo.h:323
H3DUniquePtr< SFInt32 > max3dTextureSize
A rough estimate of the largest 3D texture that the GL can handle.
Definition: GraphicsHardwareInfo.h:212
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: GraphicsHardwareInfo.h:411
H3DUniquePtr< SFInt32 > maxElementsVertices
The recommended maximum number of vertex array vertices.
Definition: GraphicsHardwareInfo.h:273
static bool infoIsInitialized()
Returns true if the static info member has been initialized or not.
Definition: GraphicsHardwareInfo.h:158
H3DUniquePtr< SFInt32 > maxTextureCoords
The maximum number of texture coordinate sets available to vertex and fragment shaders.
Definition: GraphicsHardwareInfo.h:330
H3DUniquePtr< SFInt32 > maxVaryingFloats
The maximum number of interpolators available for processing varying variables used by vertex and fra...
Definition: GraphicsHardwareInfo.h:375
H3DUniquePtr< SFInt32 > maxListNesting
The maximum recursion depth allowed during display-list traversal.
Definition: GraphicsHardwareInfo.h:299
H3DUniquePtr< SFInt32 > maxTextureImageUnits
The maximum supported texture image units that can be used to access texture maps from the fragment s...
Definition: GraphicsHardwareInfo.h:337
H3DUniquePtr< SFString > renderer
The name of the renderer.
Definition: GraphicsHardwareInfo.h:188
H3DUniquePtr< SFInt32 > maxDrawBuffers
The maximum number of simultaneous output colors allowed from a fragment shader using the gl_FragData...
Definition: GraphicsHardwareInfo.h:261
static bool info_initialized
Flag indicating if the info member has been initialized or not.
Definition: GraphicsHardwareInfo.h:414
H3DUniquePtr< SFBool > initialized
If true the information in all the other fields are valid.
Definition: GraphicsHardwareInfo.h:173
H3DUniquePtr< SFInt32 > maxPixelMapTable
The maximum supported size of a glPixelMap lookup table.
Definition: GraphicsHardwareInfo.h:317
H3DUniquePtr< SFInt32 > maxCubeMapTextureSize
The value gives a rough estimate of the largest cube-map texture that the GL can handle.
Definition: GraphicsHardwareInfo.h:254
H3DUniquePtr< SFInt32 > maxFragmentUniformComponents
The maximum number of individual floating-point, integer, or boolean values that can be held in unifo...
Definition: GraphicsHardwareInfo.h:287
H3DUniquePtr< SFInt32 > maxClipPlanes
The maximum number of application-defined clipping planes.
Definition: GraphicsHardwareInfo.h:231
H3DUniquePtr< SFInt32 > maxVertexUniformComponents
The maximum number of individual floating-point, integer, or boolean values that can be held in unifo...
Definition: GraphicsHardwareInfo.h:396
static const Info & getInfo()
Returns info about the current graphics hardware.
Definition: GraphicsHardwareInfo.h:164
virtual ~GraphicsHardwareInfo()
Destructor.
Definition: GraphicsHardwareInfo.h:99
H3DUniquePtr< SFInt32 > maxViewportHeight
The maximum supported height of the viewport.
Definition: GraphicsHardwareInfo.h:408
H3DUniquePtr< SFInt32 > maxClientAttribStackDepth
A value indicating the maximum supported depth of the client attribute stack.
Definition: GraphicsHardwareInfo.h:219
H3DUniquePtr< SFInt32 > maxTextureUnits
A value indicating the number of conventional texture units supported.
Definition: GraphicsHardwareInfo.h:365
static Info info
The graphics card info for the current system.
Definition: GraphicsHardwareInfo.h:417
H3DUniquePtr< SFString > shadingLanguageVersion
A version or release number for the shading language.
Definition: GraphicsHardwareInfo.h:200
H3DUniquePtr< SFInt32 > maxViewportWidth
The maximum supported width of the viewport.
Definition: GraphicsHardwareInfo.h:402
H3DUniquePtr< SFInt32 > maxTextureLODBias
The maximum, absolute value of the texture level-of-detail bias.
Definition: GraphicsHardwareInfo.h:343
H3DUniquePtr< SFString > vendor
The company responsible for this GL implementation.
Definition: GraphicsHardwareInfo.h:180
H3DUniquePtr< SFInt32 > maxVertexAttribs
The maximum number of 4-component generic vertex attributes accessible to a vertex shader.
Definition: GraphicsHardwareInfo.h:381
H3DUniquePtr< SFInt32 > maxCombinedTextureImageUnits
The maximum supported texture image units that can be used to access texture maps from the vertex sha...
Definition: GraphicsHardwareInfo.h:247
H3DUniquePtr< SFInt32 > maxNameStackDepth
The maximum supported depth of the selection name stack.
Definition: GraphicsHardwareInfo.h:311
This abstract node type indicates that the concrete nodes which are instantiated based on it may be u...
Definition: X3DChildNode.h:42
H3D API namespace.
Definition: Anchor.h:38
The Info class holds information about the current graphics hardware.
Definition: GraphicsHardwareInfo.h:102
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194