Class OGLGraphics.Info
java.lang.Object
com.blackrook.gloop.opengl.OGLGraphics.Info
- Direct Known Subclasses:
OGL11Graphics.Info11
- Enclosing class:
OGLGraphics
Information about this context implementation.
- Author:
- Matthew Tropiano
-
Field Summary
FieldsModifier and TypeFieldDescriptionOpenGL list of extensions.protected booleanFlag for presence of fragment shader extension.protected booleanFlag for presence of geometry shader extension.protected booleanAre we running AMD architecture?protected booleanAre we running ATi architecture?protected booleanAre we running Intel architecture?protected booleanAre we running Matrox architecture?protected booleanAre we running NVidia architecture?protected booleanAre we running S3 architecture, and if so, WHY?protected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected IntegerMaximum draw buffers.protected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected IntegerMaximum bindable lights.protected FloatMaximum line width range.protected Integerprotected FloatMaximum point size range.protected IntegerMaximum renderbuffer color attachments.protected IntegerMaximum renderbuffer size.protected IntegerMaximum multisample samples.protected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected FloatMaximum texture anisotropy.protected Integerprotected Floatprotected IntegerMaximum texture size.protected IntegerMaximum texture units.protected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected IntegerMaximum vertex attributes.protected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected FloatMinimum line width range.protected FloatMinimum point size range.protected booleanFlag for presence of non-power-of-two texture support.protected booleanFlag for presence of occlusion query extension.protected booleanFlag for presence of point smoothing ability.protected booleanFlag for presence of point sprite extension.protected booleanFlag for presence of render buffer extension.protected StringOpenGL renderer name.protected Integerprotected StringOpenGL shader version name.protected booleanFlag for presence of texture anisotropy extension.protected StringOpenGL vendor name.protected StringOpenGL version name.protected booleanFlag for presence of vertex buffer extension.protected booleanFlag for presence of vertex shader extension. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanextensionIsPresent(String extensionName) Checks if an OpenGL extension is present.booleanisAMD()booleanisATi()booleanisIntel()booleanisMatrox()booleanisNVidia()booleanisS3()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanboolean
-
Field Details
-
renderer
OpenGL renderer name. -
version
OpenGL version name. -
shaderVersion
OpenGL shader version name. -
vendor
OpenGL vendor name. -
extensions
-
isNVidia
protected boolean isNVidiaAre we running NVidia architecture? -
isAMD
protected boolean isAMDAre we running AMD architecture? -
isATi
protected boolean isATiAre we running ATi architecture? -
isS3
protected boolean isS3Are we running S3 architecture, and if so, WHY? -
isMatrox
protected boolean isMatroxAre we running Matrox architecture? -
isIntel
protected boolean isIntelAre we running Intel architecture? -
occlusionQueryExtensionPresent
protected boolean occlusionQueryExtensionPresentFlag for presence of occlusion query extension. -
vertexShaderExtensionPresent
protected boolean vertexShaderExtensionPresentFlag for presence of vertex shader extension. -
fragmentShaderExtensionPresent
protected boolean fragmentShaderExtensionPresentFlag for presence of fragment shader extension. -
geometryShaderExtensionPresent
protected boolean geometryShaderExtensionPresentFlag for presence of geometry shader extension. -
renderBufferExtensionPresent
protected boolean renderBufferExtensionPresentFlag for presence of render buffer extension. -
vertexBufferExtensionPresent
protected boolean vertexBufferExtensionPresentFlag for presence of vertex buffer extension. -
nonPowerOfTwoTextures
protected boolean nonPowerOfTwoTexturesFlag for presence of non-power-of-two texture support. -
pointSmoothingPresent
protected boolean pointSmoothingPresentFlag for presence of point smoothing ability. -
pointSpritesPresent
protected boolean pointSpritesPresentFlag for presence of point sprite extension. -
textureAnisotropyPresent
protected boolean textureAnisotropyPresentFlag for presence of texture anisotropy extension. -
maxLights
Maximum bindable lights. -
maxTextureSize
Maximum texture size. -
minPointSize
Minimum point size range. -
maxPointSize
Maximum point size range. -
minLineWidth
Minimum line width range. -
maxLineWidth
Maximum line width range. -
maxTextureUnits
Maximum texture units. -
maxTextureAnisotropy
Maximum texture anisotropy. -
maxRenderBufferSize
Maximum renderbuffer size. -
maxDrawBuffers
Maximum draw buffers. -
maxVertexAttribs
Maximum vertex attributes. -
maxRenderBufferColorAttachments
Maximum renderbuffer color attachments. -
maxSamples
Maximum multisample samples. -
maxTextureBufferSize
-
maxVertexUniformBlocks
-
maxGeometryUniformBlocks
-
maxFragmentUniformBlocks
-
maxCombinedUniformBlocks
-
maxUniformBufferBindings
-
maxUniformBlockSize
-
maxCombinedVertexUniformComponents
-
maxCombinedGeometryUniformComponents
-
maxCombinedFragmentUniformComponents
-
maxVertexOutputComponents
-
maxGeometryInputComponents
-
maxGeometryOutputComponents
-
maxFragmentInputComponents
-
maxGeometryShaderInvocations
-
minFragmentInterpolationOffset
-
maxFragmentInterpolationOffset
-
maxSubroutines
-
maxSubroutineUniformLocations
-
maxPatchVertices
-
maxTesselationGenLevel
-
maxTesselationControlUniformComponents
-
maxTesselationEvaluationUniformComponents
-
maxTesselationControlTextureImageUnits
-
maxTesselationEvaluationTextureImageUnits
-
maxTesselationControlOutputComponents
-
maxTesselationPatchComponents
-
maxTesselationControlTotalOutputComponents
-
maxTesselationEvaluationOutputComponents
-
maxTesselationControlUniformBlocks
-
maxTesselationEvaluationUniformBlocks
-
maxTesselationControlInputComponents
-
maxTesselationEvaluationInputComponents
-
maxCombinedTesselationControlUniformComponents
-
maxCombinedTesselationEvaluationUniformComponents
-
maxVertexUniformVectors
-
maxVaryingVectors
-
maxFragmentUniformVectors
-
maxViewports
-
maxVertexAtomicCounterBuffers
-
maxTesselationControlAtomicCounterBuffers
-
maxTesselationEvaluationAtomicCounterBuffers
-
maxGeometryAtomicCounterBuffers
-
maxFragmentAtomicCounterBuffers
-
maxCombinedAtomicCounterBuffers
-
maxVertexAtomicCounters
-
maxTesselationControlAtomicCounters
-
maxTesselationEvaluationAtomicCounters
-
maxGeometryAtomicCounters
-
maxFragmentAtomicCounters
-
maxCombinedAtomicCounters
-
maxAtomicCounterBufferSize
-
maxAtomicCounterBufferBindings
-
maxComputeUniformBlocks
-
maxComputeTextureImageUnits
-
maxComputeImageUniforms
-
maxComputeUniformComponents
-
maxComputeAtomicCounterBuffers
-
maxComputeAtomicCounters
-
maxCombinedComputeUniformComponents
-
maxComputeWorkGroupInvocations
-
maxDebugMessageLength
-
maxDebugLoggedMessages
-
maxDebugGroupStackDepth
-
maxLabelLength
-
maxVertexShaderStorageBlocks
-
maxGeometryShaderStorageBlocks
-
maxTesselationControlShaderStorageBlocks
-
maxTesselationEvaluationShaderStorageBlocks
-
maxFragmentShaderStorageBlocks
-
maxComputeShaderStorageBlocks
-
maxCombinedShaderStorageBlocks
-
maxShaderStorageBufferBindings
-
maxShaderStorageBlockSize
-
shaderStorageBufferOffsetAlignment
-
maxVertexAttribStride
-
maxCullDistances
-
maxCombinedClipAndCullDistances
-
maxTextureMaxAnisotropy
-
-
Constructor Details
-
Info
protected Info()
-
-
Method Details
-
extensionIsPresent
Checks if an OpenGL extension is present. If you keep calling this method for the same extension, you are better off saving the results of the first call and using that, since the list of present extensions never change during runtime.- Parameters:
extensionName- the extension name.- Returns:
- true if so, false if not.
-
getMaxLights
- Returns:
- the maximum amount of lights. Null if not available.
-
getMaxTextureUnits
- Returns:
- the maximum amount of bindable texture units. Null if not available.
-
getMaxTextureSize
- Returns:
- max texture size in pixels. Null if not available.
-
getMaxDrawBuffers
- Returns:
- max draw buffers. Null if not available.
-
getMaxVertexAttribs
- Returns:
- the maximum amount of bindable vertex attributes. Null if not available.
-
getMaxRenderBufferSize
- Returns:
- the maximum size of a render buffer object in pixels. Null if not available.
-
getMaxRenderBufferColorAttachments
- Returns:
- the maximum amount of color buffer attachments for a render buffer. Null if not available.
-
getMinPointSize
- Returns:
- the minimum size a point can be rendered. Null if not available.
-
getMaxPointSize
- Returns:
- the maximum size a point can be rendered. Null if not available.
-
getMinLineWidth
- Returns:
- the minimum width for line geometry. Null if not available.
-
getMaxLineWidth
- Returns:
- the maximum width for line geometry. Null if not available.
-
getMaxTextureAnisotropy
- Returns:
- the maximum texture anisotropy factor for mipmap generation. Null if not available.
-
getMaxSamples
- Returns:
- the maximum amount of samples for multisampling. Null if not available.
-
getRenderer
- Returns:
- the rendering device of this GL system. Null if not available.
-
getVersion
- Returns:
- the version of this GL system. Null if not available.
-
getVendor
- Returns:
- the vendor name of this GL system. Null if not available.
-
getShaderVersion
- Returns:
- the shader version of this GL system.
-
getMaxTextureBufferSize
-
getMaxVertexUniformBlocks
-
getMaxGeometryUniformBlocks
-
getMaxFragmentUniformBlocks
-
getMaxCombinedUniformBlocks
-
getMaxUniformBufferBindings
-
getMaxUniformBlockSize
-
getMaxCombinedVertexUniformComponents
-
getMaxCombinedGeometryUniformComponents
-
getMaxCombinedFragmentUniformComponents
-
getMaxVertexOutputComponents
-
getMaxGeometryInputComponents
-
getMaxGeometryOutputComponents
-
getMaxFragmentInputComponents
-
getMaxGeometryShaderInvocations
-
getMinFragmentInterpolationOffset
-
getMaxFragmentInterpolationOffset
-
getMaxSubroutines
-
getMaxSubroutineUniformLocations
-
getMaxPatchVertices
-
getMaxTesselationGenLevel
-
getMaxTesselationControlUniformComponents
-
getMaxTesselationEvaluationUniformComponents
-
getMaxTesselationControlTextureImageUnits
-
getMaxTesselationEvaluationTextureImageUnits
-
getMaxTesselationControlOutputComponents
-
getMaxTesselationPatchComponents
-
getMaxTesselationControlTotalOutputComponents
-
getMaxTesselationEvaluationOutputComponents
-
getMaxTesselationControlUniformBlocks
-
getMaxTesselationEvaluationUniformBlocks
-
getMaxTesselationControlInputComponents
-
getMaxTesselationEvaluationInputComponents
-
getMaxCombinedTesselationControlUniformComponents
-
getMaxCombinedTesselationEvaluationUniformComponents
-
getMaxVertexUniformVectors
-
getMaxVaryingVectors
-
getMaxFragmentUniformVectors
-
getMaxViewports
-
getMaxVertexAtomicCounterBuffers
-
getMaxTesselationControlAtomicCounterBuffers
-
getMaxTesselationEvaluationAtomicCounterBuffers
-
getMaxGeometryAtomicCounterBuffers
-
getMaxFragmentAtomicCounterBuffers
-
getMaxCombinedAtomicCounterBuffers
-
getMaxVertexAtomicCounters
-
getMaxTesselationControlAtomicCounters
-
getMaxTesselationEvaluationAtomicCounters
-
getMaxGeometryAtomicCounters
-
getMaxFragmentAtomicCounters
-
getMaxCombinedAtomicCounters
-
getMaxAtomicCounterBufferSize
-
getMaxAtomicCounterBufferBindings
-
getMaxComputeUniformBlocks
-
getMaxComputeTextureImageUnits
-
getMaxComputeImageUniforms
-
getMaxComputeUniformComponents
-
getMaxComputeAtomicCounterBuffers
-
getMaxComputeAtomicCounters
-
getMaxCombinedComputeUniformComponents
-
getMaxComputeWorkGroupInvocations
-
getMaxDebugMessageLength
-
getMaxDebugLoggesMessages
-
getMaxDebugGroupStackDepth
-
getMaxLabelLength
-
getMaxVertexShaderStorageBlocks
-
getMaxGeometryShaderStorageBlocks
-
getMaxTesselationControlShaderStorageBlocks
-
getMaxTesselationEvaluationShaderStorageBlocks
-
getMaxFragmentShaderStorageBlocks
-
getMaxComputeShaderStorageBlocks
-
getMaxCombinedShaderStorageBlocks
-
getMaxShaderStorageBufferBindings
-
getMaxShaderStorageBlockSize
-
getShaderStorageBufferOffsetAlignment
-
getMaxVertexAttribStride
-
getMaxCullDistances
-
getMaxCombinedClipAndCullDistances
-
getMaxTextureMaxAnisotropy
-
supportsOcclusionQueries
public boolean supportsOcclusionQueries()- Returns:
- true if occlusion query extensions are present for the video device, false otherwise.
-
supportsVertexShaders
public boolean supportsVertexShaders()- Returns:
- true if vertex shader extensions are present for the video device, false otherwise.
-
supportsFragmentShaders
public boolean supportsFragmentShaders()- Returns:
- true if fragment shader extensions are present for the video device, false otherwise.
-
supportsGeometryShaders
public boolean supportsGeometryShaders()- Returns:
- true if geometry shader extensions are present for the video device, false otherwise.
-
supportsRenderBuffers
public boolean supportsRenderBuffers()- Returns:
- true if render buffer extensions are present for the video device, false otherwise.
-
supportsVertexBuffers
public boolean supportsVertexBuffers()- Returns:
- true if vertex buffer extensions are present for the video device, false otherwise.
-
supportsNonPowerOfTwoTextures
public boolean supportsNonPowerOfTwoTextures()- Returns:
- true if this device supports non-power-of-two textures, false otherwise.
-
supportsPointSmoothing
public boolean supportsPointSmoothing()- Returns:
- true if this device supports smooth points, false otherwise.
-
supportsPointSprites
public boolean supportsPointSprites()- Returns:
- true if this device supports point sprites, false otherwise.
-
supportsTextureAnisotropy
public boolean supportsTextureAnisotropy()- Returns:
- true if this device supports texture mipmap anisotropy, false otherwise.
-
isNVidia
public boolean isNVidia()- Returns:
- true if this is running NVidia architecture.
-
isATi
public boolean isATi()- Returns:
- true if this is running ATi architecture.
-
isAMD
public boolean isAMD()- Returns:
- true if this is running AMD architecture.
-
isS3
public boolean isS3()- Returns:
- true if this is running S3 architecture.
-
isMatrox
public boolean isMatrox()- Returns:
- true if this is running Matrox architecture.
-
isIntel
public boolean isIntel()- Returns:
- true if this is running Intel architecture.
-