de.javagl.swogl.rendering
Class SwoglApplicationShaderLWJGL

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

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

Implementation of a SwoglApplication using LWJGL with OpenGL version 3


Constructor Summary
SwoglApplicationShaderLWJGL()
          Creates a new SwoglApplicationShaderLWJGL
 
Method Summary
 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  SwoglRendererShaderLWJGL getSwoglRenderer()
          Returns the SwoglRenderer that is used in this application
 de.javagl.swogl.scene.View getView()
           
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

SwoglApplicationShaderLWJGL

public SwoglApplicationShaderLWJGL()
Creates a new SwoglApplicationShaderLWJGL

Method Detail

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 SwoglRendererShaderLWJGL 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 pass the light setup and required matrices to the renderer, and then let the SwoglRenderer render all SwoglComponents.


prepareRender

protected void prepareRender()
Prepares the rendering pass