Class ContextCapabilities

java.lang.Object
com.ardor3d.renderer.ContextCapabilities
Direct Known Subclasses:
JoglContextCapabilities

public class ContextCapabilities extends Object
  • 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 _numAuxDrawBuffers
      The total number of available auxiliary draw buffers.
    • _numTotalTexUnits

      protected int _numTotalTexUnits
      The total number of supported texture units.
    • _numFixedTexUnits

      protected int _numFixedTexUnits
      The number of texture units availible for fixed functionality
    • _numVertexTexUnits

      protected int _numVertexTexUnits
      The number of texture units availible to vertex shader
    • _numFragmentTexUnits

      protected int _numFragmentTexUnits
      The number of texture units availible to fragment shader
    • _numFragmentTexCoordUnits

      protected int _numFragmentTexCoordUnits
      The number of texture coordinate sets available
    • _maxTextureSize

      protected int _maxTextureSize
      The max side of a texture supported.
    • _maxViewportWidth

      protected int _maxViewportWidth
      The max width of a viewport supported.
    • _maxViewportHeight

      protected int _maxViewportHeight
      The max height of a viewport supported.
    • _maxRenderBufferSize

      protected int _maxRenderBufferSize
      The max height of a viewport supported.
    • _maxAnisotropic

      protected float _maxAnisotropic
    • _supportsMultiTexture

      protected boolean _supportsMultiTexture
      True if multitexturing is supported.
    • _supportsFloatTextures

      protected boolean _supportsFloatTextures
      True if floating point textures are supported.
    • _supportsIntegerTextures

      protected boolean _supportsIntegerTextures
      True if integer textures are supported.
    • _supportsOneTwoComponentTextures

      protected boolean _supportsOneTwoComponentTextures
      True if Red and RedGreen only textures are supported.
    • _supportsEnvDot3

      protected boolean _supportsEnvDot3
      True if combine dot3 is supported.
    • _supportsEnvCombine

      protected boolean _supportsEnvCombine
      True if combine dot3 is supported.
    • _supportsAniso

      protected boolean _supportsAniso
      True if anisofiltering is supported.
    • _supportsNonPowerTwo

      protected boolean _supportsNonPowerTwo
      True if non pow 2 texture sizes are supported.
    • _supportsRectangular

      protected boolean _supportsRectangular
      True if rectangular textures are supported (vs. only square textures)
    • _supportsS3TCCompression

      protected boolean _supportsS3TCCompression
      True if S3TC compression is supported.
    • _supportsLATCCompression

      protected boolean _supportsLATCCompression
      True if LATC compression is supported.
    • _supportsGenericCompression

      protected boolean _supportsGenericCompression
      True if generic (non-specific) texture compression is supported.
    • _supportsTexture3D

      protected boolean _supportsTexture3D
      True if Texture3D is supported.
    • _supportsTextureCubeMap

      protected boolean _supportsTextureCubeMap
      True if TextureCubeMap is supported.
    • _automaticMipMaps

      protected boolean _automaticMipMaps
      True if non-GLU mipmap generation (part of FBO) is supported.
    • _supportsDepthTexture

      protected boolean _supportsDepthTexture
      True if depth textures are supported
    • _supportsShadow

      protected boolean _supportsShadow
      True 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

      protected String _displayVendor
    • _displayRenderer

      protected String _displayRenderer
    • _displayVersion

      protected String _displayVersion
    • _shadingLanguageVersion

      protected String _shadingLanguageVersion
  • Constructor Details

    • ContextCapabilities

      public ContextCapabilities()
    • ContextCapabilities

      public ContextCapabilities(ContextCapabilities source)
  • 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

      public String getDisplayVendor()
      Returns the vendor of the graphics adapter
      Returns:
      The vendor of the graphics adapter
    • getDisplayRenderer

      public String getDisplayRenderer()
      Returns renderer details of the adapter
      Returns:
      The adapter details
    • getDisplayVersion

      public String getDisplayVersion()
      Returns the version supported
      Returns:
      The version supported
    • getShadingLanguageVersion

      public String getShadingLanguageVersion()
      Returns the supported shading language version. Needs OpenGL 2.0 support to query.
      Returns:
      The shading language version supported