Examples of glGetString()


Examples of javax.media.opengl.GL.glGetString()

            reshape3DScene(drawable.getGL());

            if (DEBUG) {
                DEBUG = false;
                System.err.println("GL_VENDOR: " + gl.glGetString(GL.GL_VENDOR));
                System.err.println("GL_RENDERER: " + gl.glGetString(GL.GL_RENDERER));
                System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION));
            }

            resizing = false;
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

            reshape3DScene(drawable.getGL());

            if (DEBUG) {
                DEBUG = false;
                System.err.println("GL_VENDOR: " + gl.glGetString(GL.GL_VENDOR));
                System.err.println("GL_RENDERER: " + gl.glGetString(GL.GL_RENDERER));
                System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION));
            }

            resizing = false;
        }
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

            if (DEBUG) {
                DEBUG = false;
                System.err.println("GL_VENDOR: " + gl.glGetString(GL.GL_VENDOR));
                System.err.println("GL_RENDERER: " + gl.glGetString(GL.GL_RENDERER));
                System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION));
            }

            resizing = false;
        }
    }
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

    gl.glViewport(0, 0, width, height);
    glu.gluPerspective(45.0f, aspect, 1.0, 20.0);
    gl.glMatrixMode(GL.GL_MODELVIEW);
    gl.glLoadIdentity();

    System.err.println("GL_VENDOR: " + gl.glGetString(GL.GL_VENDOR));
    System.err.println("GL_RENDERER: " + gl.glGetString(GL.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION));
  }

  public void mouseMoved(MouseEvent e) {
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

    glu.gluPerspective(45.0f, aspect, 1.0, 20.0);
    gl.glMatrixMode(GL.GL_MODELVIEW);
    gl.glLoadIdentity();

    System.err.println("GL_VENDOR: " + gl.glGetString(GL.GL_VENDOR));
    System.err.println("GL_RENDERER: " + gl.glGetString(GL.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION));
  }

  public void mouseMoved(MouseEvent e) {
    if (getEventHandler().getMouseMotionListener() != null) {
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

    gl.glMatrixMode(GL.GL_MODELVIEW);
    gl.glLoadIdentity();

    System.err.println("GL_VENDOR: " + gl.glGetString(GL.GL_VENDOR));
    System.err.println("GL_RENDERER: " + gl.glGetString(GL.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION));
  }

  public void mouseMoved(MouseEvent e) {
    if (getEventHandler().getMouseMotionListener() != null) {
      // if a special handler exists (e.g. set by a plugin), use this one
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

        if (gl.glGetError() == GL.GL_INVALID_OPERATION) {
            // retrieve the error position
            final IntBuffer errorloc = BufferUtils.createIntBuffer(16);
            gl.glGetIntegerv(GL2.GL_PROGRAM_ERROR_POSITION_ARB, errorloc); // TODO Check for integer

            logger.severe("Error " + gl.glGetString(GL2.GL_PROGRAM_ERROR_STRING_ARB) + " in vertex program on line "
                    + errorloc.get(0));
        }
    }

    private static int create(final ByteBuffer program) {
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

        if (gl.glGetError() == GL.GL_INVALID_OPERATION) {
            // retrieve the error position
            final IntBuffer errorloc = BufferUtils.createIntBuffer(16);
            gl.glGetIntegerv(GL2.GL_PROGRAM_ERROR_POSITION_ARB, errorloc); // TODO Check for integer

            logger.severe("Error " + gl.glGetString(GL2.GL_PROGRAM_ERROR_STRING_ARB) + " in fragment program on line "
                    + errorloc.get(0));
        }
    }

    private static int create(final ByteBuffer program) {
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

    ClassLoader classLoader = getClass().getClassLoader();
    org.nlogo.util.SysInfo.getJOGLInfoString_$eq
        ("JOGL: " + JOGLLoader.getVersion(classLoader));

    org.nlogo.util.SysInfo.getGLInfoString_$eq(
        "OpenGL graphics: " + gl.glGetString(GL.GL_RENDERER) + "\n"
            + "OpenGL version: " + gl.glGetString(GL.GL_VERSION) + "\n"
            + "OpenGL vendor: " + gl.glGetString(GL.GL_VENDOR)
    );

    gl.glShadeModel(GL.GL_SMOOTH);                     // Enable Smooth Shading
View Full Code Here

Examples of javax.media.opengl.GL.glGetString()

    org.nlogo.util.SysInfo.getJOGLInfoString_$eq
        ("JOGL: " + JOGLLoader.getVersion(classLoader));

    org.nlogo.util.SysInfo.getGLInfoString_$eq(
        "OpenGL graphics: " + gl.glGetString(GL.GL_RENDERER) + "\n"
            + "OpenGL version: " + gl.glGetString(GL.GL_VERSION) + "\n"
            + "OpenGL vendor: " + gl.glGetString(GL.GL_VENDOR)
    );

    gl.glShadeModel(GL.GL_SMOOTH);                     // Enable Smooth Shading
    gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);          // Black Background
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.