Package org.xjge.graphics
Class GLCaps
java.lang.Object
org.xjge.graphics.GLCaps
public abstract class GLCaps
extends java.lang.Object
Supplies a
Model
object with user-defined OpenGL capabilities.
By default model objects do not exhibit depth testing or face culling. This functionality was left undefined so users could instead supplant whichever capabilities are required to render the model properly. These capabilities are essentially encapsulated in the GLCaps object and supplied to the models render method at runtime.
- Since:
- 2.0.0
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GLCaps
public GLCaps()
-
-
Method Details
-
enable
public abstract void enable()Processed before the models meshes are rendered. Calls to methods likeglEnable()
should be made here. -
disable
public abstract void disable()Processed after the models meshes haver been rendered. Calls to methods likeglDisable()
should be made here to reset the state of whichever capabilities where enabled to render the model.
-