de.javagl.swogl.rendering
Class SwoglApplicationLWJGL

java.lang.Object
  extended by de.javagl.swogl.rendering.SwoglApplicationLWJGL
All Implemented Interfaces:
de.javagl.swogl.SwoglApplication, de.javagl.swogl.SwoglSetup

public class SwoglApplicationLWJGL
extends java.lang.Object
implements de.javagl.swogl.SwoglApplication

Implementation of a SwoglApplication using LWJGL


Constructor Summary
SwoglApplicationLWJGL()
          Creates a new SimpleRendererLWJGL
 
Method Summary
protected  void applyLightSetup()
          Apply the LightSetup of this application
protected  void applyView()
          Apply the current view state to GL.
 de.javagl.swogl.scene.MutableCamera getCamera()
           
 de.javagl.swogl.scene.LightSetup getLightSetup()
           
 de.javagl.swogl.PickingRayComputer getPickingRayComputer()
           
 java.awt.Component getRenderComponent()
           
 de.javagl.swogl.SwoglComponentHandler getSwoglComponentHandler()
           
protected  de.javagl.swogl.SwoglRenderer getSwoglRenderer()
          Returns the SwoglRenderer that is used in this application
 de.javagl.swogl.scene.View getView()
           
 void initialize()
          Internal initialization
protected  void prepareRender()
          Prepares the rendering pass
protected  void render()
          Renders the current scene.
protected  void setupView()
          Set up the view according to the current size of the rendering component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwoglApplicationLWJGL

public SwoglApplicationLWJGL()
Creates a new SimpleRendererLWJGL

Method Detail

initialize

public void initialize()
Internal initialization


getView

public de.javagl.swogl.scene.View getView()
Specified by:
getView in interface de.javagl.swogl.SwoglApplication

getCamera

public de.javagl.swogl.scene.MutableCamera getCamera()
Specified by:
getCamera in interface de.javagl.swogl.SwoglApplication

getLightSetup

public de.javagl.swogl.scene.LightSetup getLightSetup()
Specified by:
getLightSetup in interface de.javagl.swogl.SwoglApplication

getPickingRayComputer

public de.javagl.swogl.PickingRayComputer getPickingRayComputer()
Specified by:
getPickingRayComputer in interface de.javagl.swogl.SwoglSetup

getRenderComponent

public java.awt.Component getRenderComponent()
Specified by:
getRenderComponent in interface de.javagl.swogl.SwoglApplication

getSwoglComponentHandler

public de.javagl.swogl.SwoglComponentHandler getSwoglComponentHandler()
Specified by:
getSwoglComponentHandler in interface de.javagl.swogl.SwoglSetup

getSwoglRenderer

protected de.javagl.swogl.SwoglRenderer getSwoglRenderer()
Returns the SwoglRenderer that is used in this application

Returns:
The SwoglRenderer that is used in this application

setupView

protected void setupView()
Set up the view according to the current size of the rendering component


render

protected void render()
Renders the current scene. This will call prepareRender() and applyView(), and then let the SwoglRenderer render all SwoglComponents.


prepareRender

protected void prepareRender()
Prepares the rendering pass


applyLightSetup

protected void applyLightSetup()
Apply the LightSetup of this application


applyView

protected void applyView()
Apply the current view state to GL.