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

    Constructors
    Constructor Description
    GLCaps()
    Creates a new GLCapabilites object which can be passed to the render() method of a Model object.
  • Method Summary

    Modifier and Type Method Description
    abstract void disable()
    Processed after the models meshes haver been rendered.
    abstract void enable()
    Processed before the models meshes are rendered.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GLCaps

      public GLCaps()
      Creates a new GLCapabilites object which can be passed to the render() method of a Model object.
  • Method Details

    • enable

      public abstract void enable()
      Processed before the models meshes are rendered. Calls to methods like glEnable() should be made here.
    • disable

      public abstract void disable()
      Processed after the models meshes haver been rendered. Calls to methods like glDisable() should be made here to reset the state of whichever capabilities where enabled to render the model.