jjdh API

jjdh.opengl.initialization
Class StandardSystemContext

java.lang.Object
  extended by jjdh.opengl.initialization.StandardSystemContext
All Implemented Interfaces:
SystemContext

public class StandardSystemContext
extends Object
implements SystemContext


Field Summary
protected  Component component
           
protected  javax.media.opengl.GLContext context
           
protected static double DEFAULT_RENDER_FPS
           
protected  javax.media.opengl.GLDrawable drawable
           
protected  Frame frame
           
protected  javax.media.opengl.GL gl
           
protected  javax.media.opengl.glu.GLU glu
           
protected  com.sun.opengl.util.GLUT glut
           
protected  MouseRobot mouseRobot
           
protected  DisplayMode oldMode
           
protected  double renderFPS
           
protected  SchedulerManager schedulerManager
           
 
Constructor Summary
StandardSystemContext()
           
 
Method Summary
 boolean checkExtensions(String... extensions)
           
 Component getComponent()
           
 javax.media.opengl.GLContext getContext()
           
 javax.media.opengl.GLDrawable getDrawable()
           
 Frame getFrame()
           
 javax.media.opengl.GL getGL()
           
 javax.media.opengl.glu.GLU getGLU()
           
 com.sun.opengl.util.GLUT getGLUT()
           
 MouseRobot getMouseRobot()
           
 double getRenderFPS()
           
 SchedulerManager getSchedulerManager()
           
 void makeCurrent()
           
 void release()
           
 void setComponent(Component component)
           
 void setDrawable(javax.media.opengl.GLDrawable drawable)
           
 void setFrame(Frame frame)
           
 void setOldMode(DisplayMode oldMode)
           
 void setRenderFPS(double renderFPS)
           
 void shutdown()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_RENDER_FPS

protected static final double DEFAULT_RENDER_FPS
See Also:
Constant Field Values

schedulerManager

protected SchedulerManager schedulerManager

renderFPS

protected double renderFPS

oldMode

protected DisplayMode oldMode

frame

protected Frame frame

component

protected Component component

mouseRobot

protected MouseRobot mouseRobot

drawable

protected javax.media.opengl.GLDrawable drawable

context

protected javax.media.opengl.GLContext context

gl

protected javax.media.opengl.GL gl

glu

protected javax.media.opengl.glu.GLU glu

glut

protected com.sun.opengl.util.GLUT glut
Constructor Detail

StandardSystemContext

public StandardSystemContext()
Method Detail

setFrame

public void setFrame(Frame frame)

setComponent

public void setComponent(Component component)

setDrawable

public void setDrawable(javax.media.opengl.GLDrawable drawable)

getSchedulerManager

public SchedulerManager getSchedulerManager()
Specified by:
getSchedulerManager in interface SystemContext

setRenderFPS

public void setRenderFPS(double renderFPS)

getRenderFPS

public double getRenderFPS()
Specified by:
getRenderFPS in interface SystemContext

setOldMode

public void setOldMode(DisplayMode oldMode)

getFrame

public Frame getFrame()
Specified by:
getFrame in interface SystemContext

getComponent

public Component getComponent()
Specified by:
getComponent in interface SystemContext

getMouseRobot

public MouseRobot getMouseRobot()
Specified by:
getMouseRobot in interface SystemContext

getDrawable

public javax.media.opengl.GLDrawable getDrawable()
Specified by:
getDrawable in interface SystemContext

getGL

public javax.media.opengl.GL getGL()
Specified by:
getGL in interface SystemContext

getGLU

public javax.media.opengl.glu.GLU getGLU()
Specified by:
getGLU in interface SystemContext

getGLUT

public com.sun.opengl.util.GLUT getGLUT()
Specified by:
getGLUT in interface SystemContext

makeCurrent

public void makeCurrent()
Specified by:
makeCurrent in interface SystemContext

release

public void release()
Specified by:
release in interface SystemContext

shutdown

public void shutdown()
Specified by:
shutdown in interface SystemContext

toString

public String toString()
Overrides:
toString in class Object

checkExtensions

public boolean checkExtensions(String... extensions)
Specified by:
checkExtensions in interface SystemContext

getContext

public javax.media.opengl.GLContext getContext()
Specified by:
getContext in interface SystemContext

jjdh API

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