diff --git a/jme3-core/src/main/java/com/jme3/renderer/Caps.java b/jme3-core/src/main/java/com/jme3/renderer/Caps.java index c39682d47..e87b1d433 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/Caps.java +++ b/jme3-core/src/main/java/com/jme3/renderer/Caps.java @@ -49,6 +49,21 @@ import java.util.Collection; public enum Caps { /** + * Supports {@link FrameBuffer FrameBuffers}. + *

+ * OpenGL: Renderer exposes the GL_EXT_framebuffer_object extension.
+ * OpenGL ES: Renderer supports OpenGL ES 2.0. + *//** + * Supports {@link FrameBuffer FrameBuffers}. + *

+ * OpenGL: Renderer exposes the GL_EXT_framebuffer_object extension.
+ * OpenGL ES: Renderer supports OpenGL ES 2.0. + *//** + * Supports {@link FrameBuffer FrameBuffers}. + *

+ * OpenGL: Renderer exposes the GL_EXT_framebuffer_object extension.
+ * OpenGL ES: Renderer supports OpenGL ES 2.0. + *//** * Supports {@link FrameBuffer FrameBuffers}. *

* OpenGL: Renderer exposes the GL_EXT_framebuffer_object extension.
@@ -107,12 +122,12 @@ public enum Caps { OpenGL32, /** - * Supports OpenGL ARB program. - *

- * OpenGL: Renderer exposes ARB_vertex_program and ARB_fragment_program - * extensions. + * Do not use. + * + * @deprecated do not use. */ - ARBprogram, + @Deprecated + Reserved0, /** * Supports GLSL 1.0 @@ -170,7 +185,7 @@ public enum Caps { TextureBuffer, /** - * Supports floating point textures (Format.RGB16F) + * Supports floating point & half textures (Format.RGB16F) */ FloatTexture, @@ -204,6 +219,11 @@ public enum Caps { */ SharedExponentColorBuffer, + /** + * Do not use. + * + * @deprecated do not use. + */ @Deprecated Reserved1, @@ -212,7 +232,9 @@ public enum Caps { */ NonPowerOfTwoTextures, - /// Vertex Buffer features + /** + * Supports geometry instancing. + */ MeshInstancing, /** @@ -253,7 +275,33 @@ public enum Caps { /** * Supports {@link Format#ETC1} texture compression. */ - TextureCompressionETC1; + TextureCompressionETC1, + + /** + * Supports {@link Format#ETC1} texture compression by uploading + * the texture as ETC2 (they are backwards compatible). + */ + TextureCompressionETC2, + + /** + * Supports OpenGL ES 2 + */ + OpenGLES20, + + /** + * Supports RGB8 / RGBA8 textures + */ + Rgba8, + + /** + * Supports depth textures. + */ + DepthTexture, + + /** + * Supports 32-bit index buffers. + */ + IntegerIndexBuffer; /** * Returns true if given the renderer capabilities, the texture diff --git a/jme3-jogl/src/main/java/com/jme3/renderer/jogl/JoglRenderer.java b/jme3-jogl/src/main/java/com/jme3/renderer/jogl/JoglRenderer.java index f3e38ac72..f04e61a88 100644 --- a/jme3-jogl/src/main/java/com/jme3/renderer/jogl/JoglRenderer.java +++ b/jme3-jogl/src/main/java/com/jme3/renderer/jogl/JoglRenderer.java @@ -307,10 +307,6 @@ public class JoglRenderer implements Renderer { caps.add(Caps.MeshInstancing); } - if (gl.isExtensionAvailable("GL_ARB_fragment_program")) { - caps.add(Caps.ARBprogram); - } - if (gl.isExtensionAvailable("GL_ARB_texture_buffer_object")) { caps.add(Caps.TextureBuffer); }