Package com.ardor3d.renderer
Class ContextCapabilities
java.lang.Object
com.ardor3d.renderer.ContextCapabilities
- Direct Known Subclasses:
JoglContextCapabilities
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
True if non-GLU mipmap generation (part of FBO) is supported.protected boolean
protected String
protected String
protected String
protected boolean
protected boolean
protected boolean
protected boolean
protected float
protected int
protected int
protected int
protected int
The max height of a viewport supported.protected float
protected int
The max side of a texture supported.protected int
protected int
The max height of a viewport supported.protected int
The max width of a viewport supported.protected int
The total number of available auxiliary draw buffers.protected int
The number of texture units availible for fixed functionalityprotected int
The number of texture coordinate sets availableprotected int
The number of texture units availible to fragment shaderprotected int
The total number of supported texture units.protected int
The number of texture units availible to vertex shaderprotected boolean
protected String
protected boolean
protected boolean
True if anisofiltering is supported.protected boolean
protected boolean
protected boolean
True if depth textures are supportedprotected boolean
protected boolean
protected boolean
True if combine dot3 is supported.protected boolean
True if combine dot3 is supported.protected boolean
protected boolean
protected boolean
protected boolean
True if floating point textures are supported.protected boolean
protected boolean
protected boolean
True if generic (non-specific) texture compression is supported.protected boolean
protected boolean
True if integer textures are supported.protected boolean
True if LATC compression is supported.protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
True if multitexturing is supported.protected boolean
True if non pow 2 texture sizes are supported.protected boolean
True if Red and RedGreen only textures are supported.protected boolean
protected boolean
protected boolean
True if rectangular textures are supported (vs. only square textures)protected boolean
True if S3TC compression is supported.protected boolean
protected boolean
protected boolean
True if shadow mapping supportedprotected boolean
protected boolean
True if Texture3D is supported.protected boolean
True if TextureCubeMap is supported.protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns renderer details of the adapterReturns the vendor of the graphics adapterReturns the version supportedfloat
Returns the maximum anisotropic filter.int
getMaxFBOColorAttachments
returns the MAX_COLOR_ATTACHMENTS for FBOs that this context supports.int
int
float
int
int
int
int
int
int
getNumberOfAuxiliaryDrawBuffers
returns the total number of available auxiliary draw buffers this context supports.int
getNumberOfFixedUnits
returns the number of texture units this context supports, for use in the fixed pipeline.int
getNumberOfFragmentTexCoordUnits
returns the number of texture coordinate sets available that this context supports.int
getNumberOfFragmentUnits
returns the number of texture units available to a fragment shader that this context supports.int
getNumberOfTotalUnits
returns the number of texture units this context supports.int
getNumberOfVertexUnits
returns the number of texture units available to a vertex shader that this context supports.Returns the supported shading language version.int
getTotalNumberOfUnits
returns the total number of texture units this context supports.boolean
boolean
boolean
Returns if AutomaticMipmap generation is available for textures.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Returns if generic (non-specific) compression is available for textures.boolean
boolean
boolean
boolean
boolean
Returns if LATC compression is available for textures.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Returns if S3TC compression is available for textures.boolean
boolean
boolean
boolean
boolean
boolean
Returns if Texture3D is available for textures.boolean
boolean
Returns if TextureCubeMap is available for textures.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Field Details
-
_supportsVBO
protected boolean _supportsVBO -
_supportsGL1_2
protected boolean _supportsGL1_2 -
_supportsMultisample
protected boolean _supportsMultisample -
_supportsDoubleCoefficientsInClipPlaneEquation
protected boolean _supportsDoubleCoefficientsInClipPlaneEquation -
_supportsConstantColor
protected boolean _supportsConstantColor -
_supportsEq
protected boolean _supportsEq -
_supportsSeparateEq
protected boolean _supportsSeparateEq -
_supportsSeparateFunc
protected boolean _supportsSeparateFunc -
_supportsMinMax
protected boolean _supportsMinMax -
_supportsSubtract
protected boolean _supportsSubtract -
_supportsFogCoords
protected boolean _supportsFogCoords -
_supportsPointSprites
protected boolean _supportsPointSprites -
_supportsPointParameters
protected boolean _supportsPointParameters -
_supportsTextureLodBias
protected boolean _supportsTextureLodBias -
_maxTextureLodBias
protected float _maxTextureLodBias -
_supportsFragmentProgram
protected boolean _supportsFragmentProgram -
_supportsVertexProgram
protected boolean _supportsVertexProgram -
_glslSupported
protected boolean _glslSupported -
_geometryShader4Supported
protected boolean _geometryShader4Supported -
_geometryInstancingSupported
protected boolean _geometryInstancingSupported -
_tessellationShadersSupported
protected boolean _tessellationShadersSupported -
_computeShaderSupported
protected boolean _computeShaderSupported -
_maxGLSLVertexAttribs
protected int _maxGLSLVertexAttribs -
_pbufferSupported
protected boolean _pbufferSupported -
_fboSupported
protected boolean _fboSupported -
_supportsFBOMultisample
protected boolean _supportsFBOMultisample -
_supportsFBOBlit
protected boolean _supportsFBOBlit -
_maxFBOColorAttachments
protected int _maxFBOColorAttachments -
_maxFBOSamples
protected int _maxFBOSamples -
_maxUserClipPlanes
protected int _maxUserClipPlanes -
_twoSidedStencilSupport
protected boolean _twoSidedStencilSupport -
_stencilWrapSupport
protected boolean _stencilWrapSupport -
_numAuxDrawBuffers
protected int _numAuxDrawBuffersThe total number of available auxiliary draw buffers. -
_numTotalTexUnits
protected int _numTotalTexUnitsThe total number of supported texture units. -
_numFixedTexUnits
protected int _numFixedTexUnitsThe number of texture units availible for fixed functionality -
_numVertexTexUnits
protected int _numVertexTexUnitsThe number of texture units availible to vertex shader -
_numFragmentTexUnits
protected int _numFragmentTexUnitsThe number of texture units availible to fragment shader -
_numFragmentTexCoordUnits
protected int _numFragmentTexCoordUnitsThe number of texture coordinate sets available -
_maxTextureSize
protected int _maxTextureSizeThe max side of a texture supported. -
_maxViewportWidth
protected int _maxViewportWidthThe max width of a viewport supported. -
_maxViewportHeight
protected int _maxViewportHeightThe max height of a viewport supported. -
_maxRenderBufferSize
protected int _maxRenderBufferSizeThe max height of a viewport supported. -
_maxAnisotropic
protected float _maxAnisotropic -
_supportsMultiTexture
protected boolean _supportsMultiTextureTrue if multitexturing is supported. -
_supportsFloatTextures
protected boolean _supportsFloatTexturesTrue if floating point textures are supported. -
_supportsIntegerTextures
protected boolean _supportsIntegerTexturesTrue if integer textures are supported. -
_supportsOneTwoComponentTextures
protected boolean _supportsOneTwoComponentTexturesTrue if Red and RedGreen only textures are supported. -
_supportsEnvDot3
protected boolean _supportsEnvDot3True if combine dot3 is supported. -
_supportsEnvCombine
protected boolean _supportsEnvCombineTrue if combine dot3 is supported. -
_supportsAniso
protected boolean _supportsAnisoTrue if anisofiltering is supported. -
_supportsNonPowerTwo
protected boolean _supportsNonPowerTwoTrue if non pow 2 texture sizes are supported. -
_supportsRectangular
protected boolean _supportsRectangularTrue if rectangular textures are supported (vs. only square textures) -
_supportsS3TCCompression
protected boolean _supportsS3TCCompressionTrue if S3TC compression is supported. -
_supportsLATCCompression
protected boolean _supportsLATCCompressionTrue if LATC compression is supported. -
_supportsGenericCompression
protected boolean _supportsGenericCompressionTrue if generic (non-specific) texture compression is supported. -
_supportsTexture3D
protected boolean _supportsTexture3DTrue if Texture3D is supported. -
_supportsTextureCubeMap
protected boolean _supportsTextureCubeMapTrue if TextureCubeMap is supported. -
_automaticMipMaps
protected boolean _automaticMipMapsTrue if non-GLU mipmap generation (part of FBO) is supported. -
_supportsDepthTexture
protected boolean _supportsDepthTextureTrue if depth textures are supported -
_supportsShadow
protected boolean _supportsShadowTrue if shadow mapping supported -
_supportsMirroredRepeat
protected boolean _supportsMirroredRepeat -
_supportsMirrorClamp
protected boolean _supportsMirrorClamp -
_supportsMirrorBorderClamp
protected boolean _supportsMirrorBorderClamp -
_supportsMirrorEdgeClamp
protected boolean _supportsMirrorEdgeClamp -
_supportsBorderClamp
protected boolean _supportsBorderClamp -
_supportsEdgeClamp
protected boolean _supportsEdgeClamp -
_displayVendor
-
_displayRenderer
-
_displayVersion
-
_shadingLanguageVersion
-
-
Constructor Details
-
ContextCapabilities
public ContextCapabilities() -
ContextCapabilities
-
-
Method Details
-
isVBOSupported
public boolean isVBOSupported()- Returns:
- true if we support Vertex Buffer Objects.
-
isOpenGL1_2Supported
public boolean isOpenGL1_2Supported()- Returns:
- true if we support all of OpenGL 1.2
-
isMultisampleSupported
public boolean isMultisampleSupported()- Returns:
- true if we support multisampling (antialiasing)
-
areDoubleCoefficientsInClipPlaneEquationSupported
public boolean areDoubleCoefficientsInClipPlaneEquationSupported()- Returns:
- true if double coefficients are supported in clip plane equation
-
isFBOMultisampleSupported
public boolean isFBOMultisampleSupported()- Returns:
- true if we support fbo multisampling (antialiasing)
-
isFBOBlitSupported
public boolean isFBOBlitSupported()- Returns:
- true if we support fbo blitting
-
isConstantBlendColorSupported
public boolean isConstantBlendColorSupported()- Returns:
- true if we support setting a constant color for use with *Constant* type BlendFunctions.
-
isSeparateBlendFunctionsSupported
public boolean isSeparateBlendFunctionsSupported()- Returns:
- true if we support setting rgb and alpha functions separately for source and destination.
-
isBlendEquationSupported
public boolean isBlendEquationSupported()- Returns:
- true if we support setting the blend equation
-
isSeparateBlendEquationsSupported
public boolean isSeparateBlendEquationsSupported()- Returns:
- true if we support setting the blend equation for alpha and rgb separately
-
isMinMaxBlendEquationsSupported
public boolean isMinMaxBlendEquationsSupported()- Returns:
- true if we support using min and max blend equations
-
isSubtractBlendEquationsSupported
public boolean isSubtractBlendEquationsSupported()- Returns:
- true if we support using subtract blend equations
-
isFogCoordinatesSupported
public boolean isFogCoordinatesSupported()- Returns:
- true if mesh based fog coords are supported
-
isPointSpritesSupported
public boolean isPointSpritesSupported()- Returns:
- true if point sprites are supported
-
isPointParametersSupported
public boolean isPointParametersSupported()- Returns:
- true if point parameters are supported
-
isTextureLodBiasSupported
public boolean isTextureLodBiasSupported()- Returns:
- true if texture lod bias is supported
-
getMaxLodBias
public float getMaxLodBias()- Returns:
- the max amount of texture lod bias that this context supports.
-
isTessellationShadersSupported
public boolean isTessellationShadersSupported()- Returns:
true
if the GLSL is supported and GL_ARB_tessellation_shader is supported by current graphics configuration
-
isComputeShaderSupported
public boolean isComputeShaderSupported()- Returns:
true
if the GLSL is supported and GL_ARB_compute_shader is supported by current graphics configuration
-
isGLSLSupported
public boolean isGLSLSupported()- Returns:
- true if the ARB_shader_objects extension is supported by current graphics configuration.
-
isGeometryInstancingSupported
public boolean isGeometryInstancingSupported()- Returns:
- true if the GLSL is supported and GL_EXT_draw_instanced is supported by the current graphics configuration configuration.
-
isGeometryShader4Supported
public boolean isGeometryShader4Supported()- Returns:
- true if the GLSL is supported and ARB_geometry_shader4 extension is supported by current graphics configuration.
-
isPbufferSupported
public boolean isPbufferSupported()- Returns:
- true if the ARB_shader_objects extension is supported by current graphics configuration.
-
isFBOSupported
public boolean isFBOSupported()- Returns:
- true if the EXT_framebuffer_object extension is supported by current graphics configuration.
-
isTwoSidedStencilSupported
public boolean isTwoSidedStencilSupported()- Returns:
- true if we can handle doing separate stencil operations for front and back facing polys in a single pass.
-
isStencilWrapSupported
public boolean isStencilWrapSupported()- Returns:
- true if we can handle wrapping increment/decrement operations.
-
getNumberOfAuxiliaryDrawBuffers
public int getNumberOfAuxiliaryDrawBuffers()getNumberOfAuxiliaryDrawBuffers
returns the total number of available auxiliary draw buffers this context supports.- Returns:
- the number of available auxiliary draw buffers supported by the context.
-
getTotalNumberOfUnits
public int getTotalNumberOfUnits()getTotalNumberOfUnits
returns the total number of texture units this context supports.- Returns:
- the total number of texture units supported by the context.
-
getNumberOfFixedTextureUnits
public int getNumberOfFixedTextureUnits()getNumberOfFixedUnits
returns the number of texture units this context supports, for use in the fixed pipeline.- Returns:
- the number units.
-
getNumberOfVertexUnits
public int getNumberOfVertexUnits()getNumberOfVertexUnits
returns the number of texture units available to a vertex shader that this context supports.- Returns:
- the number of units.
-
getNumberOfFragmentTextureUnits
public int getNumberOfFragmentTextureUnits()getNumberOfFragmentUnits
returns the number of texture units available to a fragment shader that this context supports.- Returns:
- the number of units.
-
getNumberOfFragmentTexCoordUnits
public int getNumberOfFragmentTexCoordUnits()getNumberOfFragmentTexCoordUnits
returns the number of texture coordinate sets available that this context supports.- Returns:
- the number of units.
-
getMaxTextureSize
public int getMaxTextureSize()- Returns:
- the max size of texture (in terms of # pixels wide) that this context supports.
-
getMaxViewportWidth
public int getMaxViewportWidth()- Returns:
- the max width of viewport that this context supports.
-
getMaxViewportHeight
public int getMaxViewportHeight()- Returns:
- the max height of viewport that this context supports.
-
getMaxRenderBufferSize
public int getMaxRenderBufferSize()- Returns:
- the max size (in terms of # pixels) of renderbuffer that this context supports.
-
getNumberOfTotalTextureUnits
public int getNumberOfTotalTextureUnits()getNumberOfTotalUnits
returns the number of texture units this context supports.- Returns:
- the number of units.
-
getMaxFBOColorAttachments
public int getMaxFBOColorAttachments()getMaxFBOColorAttachments
returns the MAX_COLOR_ATTACHMENTS for FBOs that this context supports.- Returns:
- the number of buffers.
-
getMaxAnisotropic
public float getMaxAnisotropic()Returns the maximum anisotropic filter.- Returns:
- The maximum anisotropic filter.
-
isMultitextureSupported
public boolean isMultitextureSupported()- Returns:
- true if multi-texturing is supported in fixed function
-
isFloatingPointTexturesSupported
public boolean isFloatingPointTexturesSupported()- Returns:
- true if floating point textures are supported by this context.
-
isIntegerTexturesSupported
public boolean isIntegerTexturesSupported()- Returns:
- true if integer textures are supported by this context.
-
isOneTwoComponentTexturesSupported
public boolean isOneTwoComponentTexturesSupported()- Returns:
- true if one- and two-component textures are supported by this context.
-
isEnvDot3TextureCombineSupported
public boolean isEnvDot3TextureCombineSupported()- Returns:
- true we support dot3 environment texture settings
-
isEnvCombineSupported
public boolean isEnvCombineSupported()- Returns:
- true we support combine environment texture settings
-
isS3TCSupported
public boolean isS3TCSupported()Returns if S3TC compression is available for textures.- Returns:
- true if S3TC is available.
-
isLATCSupported
public boolean isLATCSupported()Returns if LATC compression is available for textures.- Returns:
- true if LATC is available.
-
isGenericTCSupported
public boolean isGenericTCSupported()Returns if generic (non-specific) compression is available for textures.- Returns:
- true if available.
-
isTexture3DSupported
public boolean isTexture3DSupported()Returns if Texture3D is available for textures.- Returns:
- true if Texture3D is available.
-
isTextureCubeMapSupported
public boolean isTextureCubeMapSupported()Returns if TextureCubeMap is available for textures.- Returns:
- true if TextureCubeMap is available.
-
isAutomaticMipmapsSupported
public boolean isAutomaticMipmapsSupported()Returns if AutomaticMipmap generation is available for textures.- Returns:
- true if AutomaticMipmap generation is available.
-
isAnisoSupported
public boolean isAnisoSupported()- Returns:
- if Anisotropic texture filtering is supported
-
isNonPowerOfTwoTextureSupported
public boolean isNonPowerOfTwoTextureSupported()- Returns:
- true if non pow 2 texture sizes are supported
-
isRectangularTextureSupported
public boolean isRectangularTextureSupported()- Returns:
- true if rectangular texture sizes are supported (width != height)
-
isFragmentProgramSupported
public boolean isFragmentProgramSupported() -
isVertexProgramSupported
public boolean isVertexProgramSupported() -
getMaxGLSLVertexAttributes
public int getMaxGLSLVertexAttributes() -
isDepthTextureSupported
public boolean isDepthTextureSupported() -
isARBShadowSupported
public boolean isARBShadowSupported() -
isTextureMirroredRepeatSupported
public boolean isTextureMirroredRepeatSupported() -
isTextureMirrorClampSupported
public boolean isTextureMirrorClampSupported() -
isTextureMirrorEdgeClampSupported
public boolean isTextureMirrorEdgeClampSupported() -
isTextureMirrorBorderClampSupported
public boolean isTextureMirrorBorderClampSupported() -
isTextureBorderClampSupported
public boolean isTextureBorderClampSupported() -
isTextureEdgeClampSupported
public boolean isTextureEdgeClampSupported() -
getMaxFBOSamples
public int getMaxFBOSamples() -
getMaxUserClipPlanes
public int getMaxUserClipPlanes() -
getDisplayVendor
Returns the vendor of the graphics adapter- Returns:
- The vendor of the graphics adapter
-
getDisplayRenderer
Returns renderer details of the adapter- Returns:
- The adapter details
-
getDisplayVersion
Returns the version supported- Returns:
- The version supported
-
getShadingLanguageVersion
Returns the supported shading language version. Needs OpenGL 2.0 support to query.- Returns:
- The shading language version supported
-