Package panamagl.platform.linux
Class GLUTContext_linux
java.lang.Object
panamagl.opengl.AGLContext
panamagl.platform.linux.GLUTContext_linux
- All Implemented Interfaces:
panamagl.opengl.GLContext
public class GLUTContext_linux
extends panamagl.opengl.AGLContext
implements panamagl.opengl.GLContext
This GLUT
GLContext initialize a GLUT offscreen context allowing to then invoke
GL methods.
NB : glutInit() should only be called once. In case part of the program invokes it, it is
possible to initialize the window without calling glutInit by instead calling
GLUTContext.init(false)- Author:
- Martin Pernollet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanthis is used to prevent multiple instance of GLUTContext to run glutInit more than one time in the life of a JVM.protected 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.linux.x86.glutDisplayFunc$callback.Function fi) protected voidglutIdleFunc(opengl.linux.x86.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 -
hasInit
protected static boolean hasInitthis is used to prevent multiple instance of GLUTContext to run glutInit more than one time in the life of a JVM.
-
-
Constructor Details
-
GLUTContext_linux
public GLUTContext_linux()
-
-
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.linux.x86.glutDisplayFunc$callback.Function fi) -
glutIdleFunc
protected void glutIdleFunc(opengl.linux.x86.glutIdleFunc$callback.Function fi)
-