Class GLUTContext_windows

java.lang.Object
panamagl.opengl.AGLContext
panamagl.platform.windows.GLUTContext_windows
All Implemented Interfaces:
GLContext

public class GLUTContext_windows extends AGLContext implements 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 Details

    • windowName

      protected String 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:
      init in interface GLContext
    • 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()
      Specified by:
      destroy in interface GLContext
    • glutDisplayFunc

      protected void glutDisplayFunc(freeglut.windows.x86.glutDisplayFunc$callback fi)
    • glutIdleFunc

      protected void glutIdleFunc(freeglut.windows.x86.glutIdleFunc$callback fi)