Uses of Class
org.xjge.graphics.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 GLProgramXJGE. 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 voidXJGE. addGLProgram(java.lang.String name, GLProgram glProgram)Adds a customGLProgramto an immutable collection which can be accessed through a scenes render() method to draw the various objects and entities within it.abstract voidEntity. render(GLProgram glProgram, Camera camera, Light[] lights, int depthTexHandle)Used to organize calls to the OpenGL API and other code pertaining to rendering.abstract voidEntity. 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 voidScene. 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 voidCamera. render(java.util.Map<java.lang.String,GLProgram> glPrograms)Used to organize calls to the OpenGL API and other code pertaining to rendering.abstract voidEntity. 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 voidScene. 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 voidWidget. 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 GLProgramPostProcessShader. glProgramMethods in org.xjge.graphics with parameters of type GLProgram Modifier and Type Method Description voidModel. render(GLProgram glProgram, Light[] lights, int shineValue, int depthTexHandle)Alternate version ofrender()that uses the default capabilties provided by the engine which includes backface culling and depth testing.voidModel. render(GLProgram glProgram, Light[] lights, GLCaps capabilities, int shineValue, int depthTexHandle)Renders the 3D model.voidModel. renderShadow(GLProgram depthProgram)Alternate version ofrenderShadow()that uses the default capabilties provided by the engine which includes backface culling and depth testing.voidModel. 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.