Enum Class Caps

All Implemented Interfaces:
Serializable, Comparable<Caps>, Constable

public enum Caps extends Enum<Caps>
Specifies a capability that the Renderer supports.
  • Enum Constant Details

    • FrameBuffer

      public static final Caps FrameBuffer
      Supports FrameBuffers.

      OpenGL: Renderer exposes the GL_EXT_framebuffer_object extension.
      OpenGL ES: Renderer supports OpenGL ES 2.0.

    • FrameBufferMRT

      public static final Caps FrameBufferMRT
      Supports framebuffer Multiple Render Targets (MRT).

      OpenGL: Renderer exposes the GL_ARB_draw_buffers extension

    • FrameBufferMultisample

      public static final Caps FrameBufferMultisample
      Supports framebuffer multi-sampling.

      OpenGL: Renderer exposes the GL EXT framebuffer multisample extension
      OpenGL ES: Renderer exposes GL_APPLE_framebuffer_multisample or GL_ANGLE_framebuffer_multisample.

    • TextureMultisample

      public static final Caps TextureMultisample
      Supports texture multi-sampling.

      OpenGL: Renderer exposes the GL_ARB_texture_multisample extension
      OpenGL ES: Renderer exposes the GL_IMG_multisampled_render_to_texture extension.

    • OpenGL20

      public static final Caps OpenGL20
      Supports OpenGL 2.0 or OpenGL ES 2.0.
    • OpenGL21

      public static final Caps OpenGL21
      Supports OpenGL 2.1.
    • OpenGL30

      public static final Caps OpenGL30
      Supports OpenGL 3.0.
    • OpenGL31

      public static final Caps OpenGL31
      Supports OpenGL 3.1.
    • OpenGL32

      public static final Caps OpenGL32
      Supports OpenGL 3.2.
    • OpenGL33

      public static final Caps OpenGL33
      Supports OpenGL 3.3.
    • OpenGL40

      public static final Caps OpenGL40
      Supports OpenGL 4.0.
    • OpenGL41

      public static final Caps OpenGL41
      Supports OpenGL 4.1.
    • OpenGL42

      public static final Caps OpenGL42
      Supports OpenGL 4.2.
    • OpenGL43

      public static final Caps OpenGL43
      Supports OpenGL 4.3.
    • OpenGL44

      public static final Caps OpenGL44
      Supports OpenGL 4.4.
    • OpenGL45

      public static final Caps OpenGL45
      Supports OpenGL 4.5.
    • Reserved0

      @Deprecated public static final Caps Reserved0
      do not use.
      Do not use.
    • GLSL100

      public static final Caps GLSL100
      Supports GLSL 1.0.
    • GLSL110

      public static final Caps GLSL110
      Supports GLSL 1.1.
    • GLSL120

      public static final Caps GLSL120
      Supports GLSL 1.2.
    • GLSL130

      public static final Caps GLSL130
      Supports GLSL 1.3.
    • GLSL140

      public static final Caps GLSL140
      Supports GLSL 1.4.
    • GLSL150

      public static final Caps GLSL150
      Supports GLSL 1.5.
    • GLSL330

      public static final Caps GLSL330
      Supports GLSL 3.3.
    • GLSL400

      public static final Caps GLSL400
      Supports GLSL 4.0.
    • GLSL410

      public static final Caps GLSL410
      Supports GLSL 4.1.
    • GLSL420

      public static final Caps GLSL420
      Supports GLSL 4.2.
    • GLSL430

      public static final Caps GLSL430
      Supports GLSL 4.3.
    • GLSL440

      public static final Caps GLSL440
      Supports GLSL 4.4.
    • GLSL450

      public static final Caps GLSL450
      Supports GLSL 4.5.
    • VertexTextureFetch

      public static final Caps VertexTextureFetch
      Supports reading from textures inside the vertex shader.
    • GeometryShader

      public static final Caps GeometryShader
      Supports geometry shader.
    • TesselationShader

      public static final Caps TesselationShader
      Supports Tessellation shader.
    • TextureArray

      public static final Caps TextureArray
      Supports texture arrays.
    • TextureBuffer

      public static final Caps TextureBuffer
      Supports texture buffers.
    • FloatTexture

      public static final Caps FloatTexture
      Supports floating point and half textures (Format.RGB16F).
    • IntegerTexture

      public static final Caps IntegerTexture
      Supports integer textures.
    • FloatColorBuffer

      public static final Caps FloatColorBuffer
      Supports floating point FBO color buffers (Format.RGB16F).
    • FloatDepthBuffer

      public static final Caps FloatDepthBuffer
      Supports floating point depth buffer.
    • PackedFloatTexture

      public static final Caps PackedFloatTexture
      Supports Format.RGB111110F for textures.
    • SharedExponentTexture

      public static final Caps SharedExponentTexture
      Supports Format.RGB9E5 for textures.
    • PackedFloatColorBuffer

      public static final Caps PackedFloatColorBuffer
      Supports Format.RGB111110F for FBO color buffers.
    • SharedExponentColorBuffer

      public static final Caps SharedExponentColorBuffer
      Supports Format.RGB9E5 for FBO color buffers.
    • Reserved1

      @Deprecated public static final Caps Reserved1
      do not use.
      Do not use.
    • NonPowerOfTwoTextures

      public static final Caps NonPowerOfTwoTextures
      Supports Non-Power-Of-Two (NPOT) textures and framebuffers.
    • MeshInstancing

      public static final Caps MeshInstancing
      Supports geometry instancing.
    • VertexBufferArray

      public static final Caps VertexBufferArray
      Supports VAO, or vertex buffer arrays.
    • Multisample

      public static final Caps Multisample
      Supports multisampling on the screen.
    • PackedDepthStencilBuffer

      public static final Caps PackedDepthStencilBuffer
      Supports FBO with Depth24Stencil8 image format.
    • Srgb

      public static final Caps Srgb
      Supports sRGB framebuffers and sRGB texture format.
    • FrameBufferBlit

      public static final Caps FrameBufferBlit
      Supports blitting framebuffers.
    • TextureCompressionS3TC

      public static final Caps TextureCompressionS3TC
      Supports Image.Format.DXT1 and sister formats.
    • TextureFilterAnisotropic

      public static final Caps TextureFilterAnisotropic
      Supports anisotropic texture filtering.
    • TextureCompressionETC1

      public static final Caps TextureCompressionETC1
      Supports Image.Format.ETC1 texture compression.
    • TextureCompressionETC2

      public static final Caps TextureCompressionETC2
      Supports Image.Format.ETC1 texture compression by uploading the texture as ETC2 (they are backwards compatible).
    • TextureCompressionBPTC

      public static final Caps TextureCompressionBPTC
      Supports BPTC and sister formats.
    • TextureCompressionRGTC

      public static final Caps TextureCompressionRGTC
      Supports Image.Format.RGTC1 and other RGTC compressed formats.
    • OpenGLES20

      public static final Caps OpenGLES20
      Supports OpenGL ES 2.
    • Rgba8

      public static final Caps Rgba8
      Supports RGB8 / RGBA8 textures.
    • DepthTexture

      public static final Caps DepthTexture
      Supports depth textures.
    • IntegerIndexBuffer

      public static final Caps IntegerIndexBuffer
      Supports 32-bit index buffers.
    • PartialNonPowerOfTwoTextures

      public static final Caps PartialNonPowerOfTwoTextures
      Partial support for non-power-of-2 textures, typically found on OpenGL ES 2 devices.

      Use of NPOT textures is allowed iff:

    • SeamlessCubemap

      public static final Caps SeamlessCubemap
      When sampling cubemap edges, interpolates between the adjacent faces instead of just sampling one face.

      Improves the quality of environment mapping.

    • CoreProfile

      public static final Caps CoreProfile
      Running with OpenGL 3.2+ core profile. Compatibility features will not be available.
    • BinaryShader

      public static final Caps BinaryShader
      GPU support for binary shaders.
    • UniformBufferObject

      public static final Caps UniformBufferObject
      Supporting working with UniformBufferObject.
    • ShaderStorageBufferObject

      public static final Caps ShaderStorageBufferObject
      Supporting working with ShaderStorageBufferObjects.
    • OpenGLES30

      public static final Caps OpenGLES30
      Supports OpenGL ES 3.0.
    • GLSL300

      public static final Caps GLSL300
      Supports GLSL 3.0.
    • OpenGLES31

      public static final Caps OpenGLES31
      Supports OpenGL ES 3.1.
    • GLSL310

      public static final Caps GLSL310
      Supports GLSL 3.1.
    • OpenGLES32

      public static final Caps OpenGLES32
      Supports OpenGL ES 3.2.
    • GLSL320

      public static final Caps GLSL320
      Supports GLSL 3.2.
    • Depth24

      public static final Caps Depth24
      Explicit support of depth 24 textures.
    • UnpackRowLength

      public static final Caps UnpackRowLength
      Supports unpack row length (stride).
    • GLDebug

      public static final Caps GLDebug
      Supports debugging capabilities
  • Method Details

    • values

      public static Caps[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Caps valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • supports

      public static boolean supports(Collection<Caps> caps, Texture tex)
      Returns true if given the renderer capabilities, the texture can be supported by the renderer.

      This only checks the format of the texture, non-power-of-2 textures are scaled automatically inside the renderer if are not supported natively.

      caps - The collection of renderer capabilities Renderer.getCaps().
      tex - The texture to check
      True if it is supported, false otherwise.
    • supports

      public static boolean supports(Collection<Caps> caps, FrameBuffer fb)
      Returns true if given the renderer capabilities, the framebuffer can be supported by the renderer.
      caps - The collection of renderer capabilities Renderer.getCaps().
      fb - The framebuffer to check
      True if it is supported, false otherwise.
    • supports

      public static boolean supports(Collection<Caps> caps, Shader shader)
      Returns true if given the renderer capabilities, the shader can be supported by the renderer.
      caps - The collection of renderer capabilities Renderer.getCaps().
      shader - The shader to check
      True if it is supported, false otherwise.