Class OpenGLEventListenerImplInstanceArrayOfTokens

  • All Implemented Interfaces:
    com.jogamp.opengl.GLEventListener, java.util.EventListener, OpenGLEventListener

    public class OpenGLEventListenerImplInstanceArrayOfTokens
    extends java.lang.Object
    implements OpenGLEventListener
    This class computes the location of all tokens on the cpu, makes an instance array of coordinates and sends these to the gpu. Does not currently support token colouring and consists of flower-power squares instead of disks.
    Author:
    sander
    • Constructor Detail

      • OpenGLEventListenerImplInstanceArrayOfTokens

        public OpenGLEventListenerImplInstanceArrayOfTokens()
    • Method Detail

      • init

        public void init​(com.jogamp.opengl.GLAutoDrawable drawable)
        Specified by:
        init in interface com.jogamp.opengl.GLEventListener
      • dispose

        public void dispose​(com.jogamp.opengl.GLAutoDrawable drawable)
        Specified by:
        dispose in interface com.jogamp.opengl.GLEventListener
      • display

        public void display​(com.jogamp.opengl.GLAutoDrawable drawable)
        Specified by:
        display in interface com.jogamp.opengl.GLEventListener
      • reshape

        public void reshape​(com.jogamp.opengl.GLAutoDrawable drawable,
                            int x,
                            int y,
                            int width,
                            int height)
        Specified by:
        reshape in interface com.jogamp.opengl.GLEventListener