Package panamagl.platform.windows
Class GLUTContext_windows
java.lang.Object
panamagl.opengl.AGLContext
panamagl.platform.windows.GLUTContext_windows
- All Implemented Interfaces:
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 int
protected int
protected int
protected int
protected int
protected String
Fields inherited from class panamagl.opengl.AGLContext
allocator, initialized, profile, scope
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
protected void
glutDisplayFunc
(freeglut.windows.x86.glutDisplayFunc$callback fi) protected void
glutIdleFunc
(freeglut.windows.x86.glutIdleFunc$callback fi) void
init()
Initialize GLUT and create a windowvoid
init
(boolean forceLoadGlut) Initialize GLUT if input arg is true, and create a windowprotected void
Methods inherited from class panamagl.opengl.AGLContext
getProfile, initScope, isInitialized, setProfile
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 -
init
public void init(boolean forceLoadGlut) Initialize GLUT if input arg is true, and create a window -
loadNativeLibraries
protected void loadNativeLibraries() -
destroy
public void destroy() -
glutDisplayFunc
protected void glutDisplayFunc(freeglut.windows.x86.glutDisplayFunc$callback fi) -
glutIdleFunc
protected void glutIdleFunc(freeglut.windows.x86.glutIdleFunc$callback fi)
-