jjdh API

jjdh.opengl.program
Class AbstractOpenGLProgram

java.lang.Object
  extended by jjdh.opengl.program.AbstractOpenGLProgram
All Implemented Interfaces:
OpenGLProgram
Direct Known Subclasses:
StandardOpenGLProgram

public abstract class AbstractOpenGLProgram
extends Object
implements OpenGLProgram


Nested Class Summary
 
Nested classes/interfaces inherited from interface jjdh.opengl.program.OpenGLProgram
OpenGLProgram.State
 
Field Summary
protected  Camera camera
           
protected  SystemContext context
           
protected  Scheduler glScheduler
           
protected  ProgramModel model
           
protected  MouseRobot mouseRobot
           
protected  String name
           
protected  StateManager<OpenGLProgram.State> state
           
 
Constructor Summary
AbstractOpenGLProgram()
           
 
Method Summary
 Camera getCamera()
           
 SystemContext getContext()
          Returns the system context in which this program is operating.
 MouseRobot getMouseRobot()
           
 String getName()
           
 StateManager<OpenGLProgram.State> getState()
          Manages the state of this program.
 void setCamera(Camera camera)
           
 void setContext(SystemContext context)
           
 void setMouseRobot(MouseRobot mouseRobot)
           
 void setName(String name)
          Changes the name of this program.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

context

protected SystemContext context

glScheduler

protected Scheduler glScheduler

model

protected ProgramModel model

mouseRobot

protected MouseRobot mouseRobot

name

protected String name

state

protected StateManager<OpenGLProgram.State> state

camera

protected Camera camera
Constructor Detail

AbstractOpenGLProgram

public AbstractOpenGLProgram()
Method Detail

setContext

public void setContext(SystemContext context)
Specified by:
setContext in interface OpenGLProgram

getContext

public SystemContext getContext()
Description copied from interface: OpenGLProgram
Returns the system context in which this program is operating.

Specified by:
getContext in interface OpenGLProgram
Returns:
the used system context

getName

public String getName()
Specified by:
getName in interface OpenGLProgram

setName

public void setName(String name)
Description copied from interface: OpenGLProgram
Changes the name of this program.

Specified by:
setName in interface OpenGLProgram
Parameters:
name - the new name

toString

public String toString()
Overrides:
toString in class Object

getState

public StateManager<OpenGLProgram.State> getState()
Description copied from interface: OpenGLProgram
Manages the state of this program.

Specified by:
getState in interface OpenGLProgram

setMouseRobot

public void setMouseRobot(MouseRobot mouseRobot)

getMouseRobot

public MouseRobot getMouseRobot()

setCamera

public void setCamera(Camera camera)
Specified by:
setCamera in interface OpenGLProgram

getCamera

public Camera getCamera()
Specified by:
getCamera in interface OpenGLProgram

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.