Uses of Class
org.xjge.graphics.GLProgram

Packages that use GLProgram
Package Description
org.xjge.core
Contains various classes, objects, and utilities many of which are essential to the function of the engine.
org.xjge.graphics
Supplies abstractions of OpenGL into various objects and data structures to be used by other parts of the engine.
  • Uses of GLProgram in org.xjge.core

    Methods in org.xjge.core that return GLProgram
    Modifier and Type Method Description
    static GLProgram XJGE.getDefaultGLProgram()
    Provides convenient access to the engines default shader program.
    Methods in org.xjge.core with parameters of type GLProgram
    Modifier and Type Method Description
    static void XJGE.addGLProgram​(java.lang.String name, GLProgram glProgram)
    Adds a custom GLProgram to an immutable collection which can be accessed through a scenes render() method to draw the various objects and entities within it.
    abstract void Entity.render​(GLProgram glProgram, Camera camera, Light[] lights, int depthTexHandle)
    Used to organize calls to the OpenGL API and other code pertaining to rendering.
    abstract void Entity.renderShadow​(GLProgram depthProgram)
    Used to cast a shadow using this entities model matrix (and texture if necessary) by passing them as uniforms to the depth program.
    abstract void Scene.renderShadows​(GLProgram depthProgram)
    Used to organize calls to the OpenGL API by entities and other objects within the scene who wish to cast shadows.
    Method parameters in org.xjge.core with type arguments of type GLProgram
    Modifier and Type Method Description
    abstract void Camera.render​(java.util.Map<java.lang.String,​GLProgram> glPrograms)
    Used to organize calls to the OpenGL API and other code pertaining to rendering.
    abstract void Entity.render​(java.util.Map<java.lang.String,​GLProgram> glPrograms, Camera camera, Light[] lights, int depthTexHandle)
    Used to organize calls to the OpenGL API and other code pertaining to rendering.
    abstract void Scene.render​(java.util.Map<java.lang.String,​GLProgram> glPrograms, int viewportID, Camera camera, int depthTexHandle)
    Organizes calls to the OpenGL API made by entities and other various objects located in the game world.
    abstract void Widget.render​(java.util.Map<java.lang.String,​GLProgram> glPrograms)
    Organizes calls to the OpenGL API made by this widget.
  • Uses of GLProgram in org.xjge.graphics

    Fields in org.xjge.graphics declared as GLProgram
    Modifier and Type Field Description
    GLProgram PostProcessShader.glProgram  
    Methods in org.xjge.graphics with parameters of type GLProgram
    Modifier and Type Method Description
    void Model.render​(GLProgram glProgram, Light[] lights, int shineValue, int depthTexHandle)
    Alternate version of render() that uses the default capabilties provided by the engine which includes backface culling and depth testing.
    void Model.render​(GLProgram glProgram, Light[] lights, GLCaps capabilities, int shineValue, int depthTexHandle)
    Renders the 3D model.
    void Model.renderShadow​(GLProgram depthProgram)
    Alternate version of renderShadow() that uses the default capabilties provided by the engine which includes backface culling and depth testing.
    void Model.renderShadow​(GLProgram depthProgram, GLCaps capabiltites)
    Used to cast a shadow using the model matrix of each mesh (and texture if necessary) by passing them as uniforms to the depth program.
    Constructors in org.xjge.graphics with parameters of type GLProgram
    Constructor Description
    PostProcessShader​(GLProgram glProgram)
    Creates a new object that can be used to reroute the render cycle of a viewport object and apply post-processing effects to its framebuffer texture.