Package panamagl.platform.windows
Class GLUTContext_windows
java.lang.Object
panamagl.opengl.AGLContext
panamagl.platform.windows.GLUTContext_windows
- All Implemented Interfaces:
panamagl.opengl.GLContext
public class GLUTContext_windows
extends panamagl.opengl.AGLContext
implements panamagl.opengl.GLContext
This GLUT
GLContext initialize a GLUT offscreen context allowing to then invoke
GL methods.
freeglut is loaded and glutInit invoked once per process by GLUT_windows.init().- Author:
- Martin Pernollet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intprotected intprotected StringFields inherited from class panamagl.opengl.AGLContext
arena, initialized, profile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected voidglutDisplayFunc(opengl.windows.glutDisplayFunc$callback.Function fi) protected voidglutIdleFunc(opengl.windows.glutIdleFunc$callback.Function fi) voidinit()Initialize GLUT and create a windowMethods inherited from class panamagl.opengl.AGLContext
getProfile, initArena, isInitialized, setProfileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface panamagl.opengl.GLContext
getProfile, isInitialized, setProfile
-
Field Details
-
windowName
-
initWidth
protected int initWidth -
initHeight
protected int initHeight -
initX
protected int initX -
initY
protected int initY -
windowHandle
protected int windowHandle
-
-
Constructor Details
-
GLUTContext_windows
public GLUTContext_windows()
-
-
Method Details
-
init
public void init()Initialize GLUT and create a window- Specified by:
initin interfacepanamagl.opengl.GLContext
-
destroy
public void destroy()- Specified by:
destroyin interfacepanamagl.opengl.GLContext
-
glutDisplayFunc
protected void glutDisplayFunc(opengl.windows.glutDisplayFunc$callback.Function fi) -
glutIdleFunc
protected void glutIdleFunc(opengl.windows.glutIdleFunc$callback.Function fi)
-