Uses of Class
org.xjge.core.Light
| 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 Light in org.xjge.core
Fields in org.xjge.core declared as Light Modifier and Type Field Description protected Light[]Scene. lightsAn array that contains everyLightobject currently present within the scene.Methods in org.xjge.core that return Light Modifier and Type Method Description static LightLight. beacon()Provides implementing applications with a predefined light object that resembles a red air traffic beacon.static LightLight. campfire()Provides implementing applications with a predefined light object that resembles the warm glow of a campfire.static LightLight. cryotube()Provides implementing applications with a predefined light object that resembles a cryogenic storage device.static LightLight. daylight()Provides implementing applications with an predefined light object that mimics daylight.static LightLight. glowstick()Provides implementing applications with a predefined light object that resembles a bright green glowstick.static LightLight. midnight()Provides implementing applications with an predefined light object that resembles moonlight.static LightLight. random()Provides implementing applications with a randomized light object.static LightLight. sunset()Provides implementing applications with an predefined light object that simulates the hue of a sunset.Methods in org.xjge.core with parameters of type Light Modifier and Type Method Description static voidGame. addLight(int index, Light light)Inserts a light object into the current scenes lights array at the specified index.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 voidEntity. render(GLProgram glProgram, Camera camera, Light[] lights, int depthTexHandle)Used to organize calls to the OpenGL API and other code pertaining to rendering. -
Uses of Light in org.xjge.graphics
Methods in org.xjge.graphics with parameters of type Light 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.