Package panamagl.platform.macos
Class GLUTContext_macOS
java.lang.Object
panamagl.opengl.AGLContext
panamagl.platform.macos.GLUTContext_macOS
- All Implemented Interfaces:
panamagl.opengl.GLContext
public class GLUTContext_macOS
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
FieldsFields inherited from class panamagl.opengl.AGLContext
arena, initialized, profile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected voidglutDisplayFunc(opengl.macos.arm.glutDisplayFunc$func.Function fi) protected voidglutIdleFunc(opengl.macos.arm.glutIdleFunc$func.Function fi) protected voidglutInitWindowSize(int width, int height) voidinit()Initialize GLUT and create a windowvoidinit(boolean forceLoadGlut) Initialize GLUT if input arg is true, 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 -
windowHandle
protected int windowHandle
-
-
Constructor Details
-
GLUTContext_macOS
public GLUTContext_macOS()
-
-
Method Details
-
init
public void init()Initialize GLUT and create a window- Specified by:
initin interfacepanamagl.opengl.GLContext
-
init
public void init(boolean forceLoadGlut) Initialize GLUT if input arg is true, and create a window -
destroy
public void destroy()- Specified by:
destroyin interfacepanamagl.opengl.GLContext
-
glutDisplayFunc
protected void glutDisplayFunc(opengl.macos.arm.glutDisplayFunc$func.Function fi) -
glutIdleFunc
protected void glutIdleFunc(opengl.macos.arm.glutIdleFunc$func.Function fi) -
glutInitWindowSize
protected void glutInitWindowSize(int width, int height)
-