Package com.jme3.renderer
Enum Class Caps
- All Implemented Interfaces:
Serializable
,Comparable<Caps>
,Constable
Specifies a capability that the
Renderer
supports.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGPU support for binary shaders.Running with OpenGL 3.2+ core profile.Explicit support of depth 24 textures.Supports depth textures.Supports floating point FBO color buffers (Format.RGB16F).Supports rendering on RGB floating point texturesSupports rendering on RGBA floating point texturesSupports floating point depth buffer.Supports floating point and half textures (Format.RGB16F).SupportsFrameBuffers
.Supports blitting framebuffers.Supports framebuffer Multiple Render Targets (MRT).Supports framebuffer multi-sampling.Supports geometry shader.Supports debugging capabilitiesSupports GLSL 1.0.Supports GLSL 1.1.Supports GLSL 1.2.Supports GLSL 1.3.Supports GLSL 1.4.Supports GLSL 1.5.Supports GLSL 3.0.Supports GLSL 3.1.Supports GLSL 3.2.Supports GLSL 3.3.Supports GLSL 4.0.Supports GLSL 4.1.Supports GLSL 4.2.Supports GLSL 4.3.Supports GLSL 4.4.Supports GLSL 4.5.Supports 32-bit index buffers.Supports integer textures.Supports geometry instancing.Supports multisampling on the screen.Supports Non-Power-Of-Two (NPOT) textures and framebuffers.Supports OpenGL 2.0 or OpenGL ES 2.0.Supports OpenGL 2.1.Supports OpenGL 3.0.Supports OpenGL 3.1.Supports OpenGL 3.2.Supports OpenGL 3.3.Supports OpenGL 4.0.Supports OpenGL 4.1.Supports OpenGL 4.2.Supports OpenGL 4.3.Supports OpenGL 4.4.Supports OpenGL 4.5.Supports OpenGL ES 2.Supports OpenGL ES 3.0.Supports OpenGL ES 3.1.Supports OpenGL ES 3.2.Supports FBO with Depth24Stencil8 image format.Supports Format.RGB111110F for FBO color buffers.Supports Format.RGB111110F for textures.Partial support for non-power-of-2 textures, typically found on OpenGL ES 2 devices.Deprecated.do not use.Deprecated.do not use.Supports RGB8 / RGBA8 textures.When sampling cubemap edges, interpolates between the adjacent faces instead of just sampling one face.Supporting working with ShaderStorageBufferObjects.Supports Format.RGB9E5 for FBO color buffers.Supports Format.RGB9E5 for textures.Supports sRGB framebuffers and sRGB texture format.Supports Tessellation shader.Supports texture arrays.Supports texture buffers.Supports BPTC and sister formats.SupportsImage.Format.ETC1
texture compression.SupportsImage.Format.ETC1
texture compression by uploading the texture as ETC2 (they are backwards compatible).SupportsImage.Format.RGTC1
and other RGTC compressed formats.SupportsImage.Format.DXT1
and sister formats.Supports anisotropic texture filtering.Supports texture multi-sampling.Supporting working with UniformBufferObject.Supports unpack row length (stride).Supports VAO, or vertex buffer arrays.Supports reading from textures inside the vertex shader.Supports WebGL -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
supports
(Collection<Caps> caps, Shader shader) Returns true if given the renderer capabilities, the shader can be supported by the renderer.static boolean
supports
(Collection<Caps> caps, FrameBuffer fb) Returns true if given the renderer capabilities, the framebuffer can be supported by the renderer.static boolean
supports
(Collection<Caps> caps, Texture tex) Returns true if given the renderer capabilities, the texture can be supported by the renderer.static Caps
Returns the enum constant of this class with the specified name.static Caps[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FrameBuffer
SupportsFrameBuffers
.OpenGL: Renderer exposes the GL_EXT_framebuffer_object extension.
OpenGL ES: Renderer supports OpenGL ES 2.0. -
FrameBufferMRT
Supports framebuffer Multiple Render Targets (MRT).OpenGL: Renderer exposes the GL_ARB_draw_buffers extension
-
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
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
Supports OpenGL 2.0 or OpenGL ES 2.0. -
OpenGL21
Supports OpenGL 2.1. -
OpenGL30
Supports OpenGL 3.0. -
OpenGL31
Supports OpenGL 3.1. -
OpenGL32
Supports OpenGL 3.2. -
OpenGL33
Supports OpenGL 3.3. -
OpenGL40
Supports OpenGL 4.0. -
OpenGL41
Supports OpenGL 4.1. -
OpenGL42
Supports OpenGL 4.2. -
OpenGL43
Supports OpenGL 4.3. -
OpenGL44
Supports OpenGL 4.4. -
OpenGL45
Supports OpenGL 4.5. -
Reserved0
Deprecated.do not use.Do not use. -
GLSL100
Supports GLSL 1.0. -
GLSL110
Supports GLSL 1.1. -
GLSL120
Supports GLSL 1.2. -
GLSL130
Supports GLSL 1.3. -
GLSL140
Supports GLSL 1.4. -
GLSL150
Supports GLSL 1.5. -
GLSL330
Supports GLSL 3.3. -
GLSL400
Supports GLSL 4.0. -
GLSL410
Supports GLSL 4.1. -
GLSL420
Supports GLSL 4.2. -
GLSL430
Supports GLSL 4.3. -
GLSL440
Supports GLSL 4.4. -
GLSL450
Supports GLSL 4.5. -
VertexTextureFetch
Supports reading from textures inside the vertex shader. -
GeometryShader
Supports geometry shader. -
TesselationShader
Supports Tessellation shader. -
TextureArray
Supports texture arrays. -
TextureBuffer
Supports texture buffers. -
FloatTexture
Supports floating point and half textures (Format.RGB16F). -
FloatColorBufferRGB
Supports rendering on RGB floating point textures -
FloatColorBufferRGBA
Supports rendering on RGBA floating point textures -
IntegerTexture
Supports integer textures. -
FloatColorBuffer
Supports floating point FBO color buffers (Format.RGB16F). -
FloatDepthBuffer
Supports floating point depth buffer. -
PackedFloatTexture
Supports Format.RGB111110F for textures. -
PackedFloatColorBuffer
Supports Format.RGB111110F for FBO color buffers. -
Reserved1
Deprecated.do not use.Do not use. -
NonPowerOfTwoTextures
Supports Non-Power-Of-Two (NPOT) textures and framebuffers. -
MeshInstancing
Supports geometry instancing. -
VertexBufferArray
Supports VAO, or vertex buffer arrays. -
Multisample
Supports multisampling on the screen. -
PackedDepthStencilBuffer
Supports FBO with Depth24Stencil8 image format. -
Srgb
Supports sRGB framebuffers and sRGB texture format. -
FrameBufferBlit
Supports blitting framebuffers. -
TextureCompressionS3TC
SupportsImage.Format.DXT1
and sister formats. -
TextureFilterAnisotropic
Supports anisotropic texture filtering. -
TextureCompressionETC1
SupportsImage.Format.ETC1
texture compression. -
TextureCompressionETC2
SupportsImage.Format.ETC1
texture compression by uploading the texture as ETC2 (they are backwards compatible). -
TextureCompressionBPTC
Supports BPTC and sister formats. -
TextureCompressionRGTC
SupportsImage.Format.RGTC1
and other RGTC compressed formats. -
OpenGLES20
Supports OpenGL ES 2. -
WebGL
Supports WebGL -
Rgba8
Supports RGB8 / RGBA8 textures. -
DepthTexture
Supports depth textures. -
IntegerIndexBuffer
Supports 32-bit index buffers. -
PartialNonPowerOfTwoTextures
Partial support for non-power-of-2 textures, typically found on OpenGL ES 2 devices.Use of NPOT textures is allowed iff:
- The
Texture.WrapMode
is set toTexture.WrapMode.EdgeClamp
. - Mip-mapping is not used, meaning
Texture.MinFilter
is set toTexture.MinFilter.BilinearNoMipMaps
orTexture.MinFilter.NearestNoMipMaps
- The
-
SeamlessCubemap
When sampling cubemap edges, interpolates between the adjacent faces instead of just sampling one face.Improves the quality of environment mapping.
-
CoreProfile
Running with OpenGL 3.2+ core profile. Compatibility features will not be available. -
BinaryShader
GPU support for binary shaders. -
UniformBufferObject
Supporting working with UniformBufferObject. -
ShaderStorageBufferObject
Supporting working with ShaderStorageBufferObjects. -
OpenGLES30
Supports OpenGL ES 3.0. -
GLSL300
Supports GLSL 3.0. -
OpenGLES31
Supports OpenGL ES 3.1. -
GLSL310
Supports GLSL 3.1. -
OpenGLES32
Supports OpenGL ES 3.2. -
GLSL320
Supports GLSL 3.2. -
Depth24
Explicit support of depth 24 textures. -
UnpackRowLength
Supports unpack row length (stride). -
GLDebug
Supports debugging capabilities
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
supports
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.
- Parameters:
caps
- The collection of renderer capabilitiesRenderer.getCaps()
.tex
- The texture to check- Returns:
- True if it is supported, false otherwise.
-
supports
Returns true if given the renderer capabilities, the framebuffer can be supported by the renderer.- Parameters:
caps
- The collection of renderer capabilitiesRenderer.getCaps()
.fb
- The framebuffer to check- Returns:
- True if it is supported, false otherwise.
-
supports
Returns true if given the renderer capabilities, the shader can be supported by the renderer.- Parameters:
caps
- The collection of renderer capabilitiesRenderer.getCaps()
.shader
- The shader to check- Returns:
- True if it is supported, false otherwise.
-