de.javagl.swogl.rendering
Class SwoglApplicationShaderJOGL

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

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

Implementation of a SwoglApplication using JOGL with OpenGL version 3


Constructor Summary
SwoglApplicationShaderJOGL()
          Creates a new SwoglApplicationShaderJOGL
SwoglApplicationShaderJOGL(boolean useGLJPanel)
          Creates a new SwoglApplicationShaderJOGL.
 
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  SwoglRendererShaderJOGL 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

SwoglApplicationShaderJOGL

public SwoglApplicationShaderJOGL()
Creates a new SwoglApplicationShaderJOGL


SwoglApplicationShaderJOGL

public SwoglApplicationShaderJOGL(boolean useGLJPanel)
Creates a new SwoglApplicationShaderJOGL.

Parameters:
useGLJPanel - Whether a GLJPanel should be used instead of a GLCanvas (experimental)
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 SwoglRendererShaderJOGL 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