Uses of Class
org.xjge.core.Light

Packages that use 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.lights
    An array that contains every Light object currently present within the scene.
    Methods in org.xjge.core that return Light
    Modifier and Type Method Description
    static Light Light.beacon()
    Provides implementing applications with a predefined light object that resembles a red air traffic beacon.
    static Light Light.campfire()
    Provides implementing applications with a predefined light object that resembles the warm glow of a campfire.
    static Light Light.cryotube()
    Provides implementing applications with a predefined light object that resembles a cryogenic storage device.
    static Light Light.daylight()
    Provides implementing applications with an predefined light object that mimics daylight.
    static Light Light.glowstick()
    Provides implementing applications with a predefined light object that resembles a bright green glowstick.
    static Light Light.midnight()
    Provides implementing applications with an predefined light object that resembles moonlight.
    static Light Light.random()
    Provides implementing applications with a randomized light object.
    static Light Light.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 void Game.addLight​(int index, Light light)
    Inserts a light object into the current scenes lights array at the specified index.
    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 Entity.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
    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.