Examples of glGetString()


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

        ("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
    gl.glClearDepth(1.0f);                            // Depth Buffer Setup
View Full Code Here

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

      // - or disable mutisample before drawing with line_smooth!
    //TOOD dont use lines to smooth some objects then (fonts, etc)
      if (MT4jSettings.getInstance().isOpenGlMode() ){
        GL gl = Tools3D.getGL(this);
       
        logger.info("OpenGL Version: \"" + gl.glGetString(GL.GL_VERSION) + "\"" + " - Vendor: \"" + gl.glGetString(GL.GL_VENDOR) + "\"" + " - Renderer: \"" + gl.glGetString(GL.GL_RENDERER) + "\"");
//        logger.info("Shading language version: \"" +  gl.glGetString(GL.GL_SHADING_LANGUAGE_VERSION) + "\"");
        logger.info("Non power of two texture sizes allowed: \"" + Tools3D.supportsNonPowerOfTwoTexture(this) + "\"");
        logger.info("OpenGL Framebuffer Object Extension available: \"" + GLFBO.isSupported(this) + "\"");
       
      //Set VSyncing on -> to avoid tearing
View Full Code Here

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

      // - or disable mutisample before drawing with line_smooth!
    //TOOD dont use lines to smooth some objects then (fonts, etc)
      if (MT4jSettings.getInstance().isOpenGlMode() ){
        GL gl = Tools3D.getGL(this);
       
        logger.info("OpenGL Version: \"" + gl.glGetString(GL.GL_VERSION) + "\"" + " - Vendor: \"" + gl.glGetString(GL.GL_VENDOR) + "\"" + " - Renderer: \"" + gl.glGetString(GL.GL_RENDERER) + "\"");
//        logger.info("Shading language version: \"" +  gl.glGetString(GL.GL_SHADING_LANGUAGE_VERSION) + "\"");
        logger.info("Non power of two texture sizes allowed: \"" + Tools3D.supportsNonPowerOfTwoTexture(this) + "\"");
        logger.info("OpenGL Framebuffer Object Extension available: \"" + GLFBO.isSupported(this) + "\"");
       
      //Set VSyncing on -> to avoid tearing
View Full Code Here

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

      // - or disable mutisample before drawing with line_smooth!
    //TOOD dont use lines to smooth some objects then (fonts, etc)
      if (MT4jSettings.getInstance().isOpenGlMode() ){
        GL gl = Tools3D.getGL(this);
       
        logger.info("OpenGL Version: \"" + gl.glGetString(GL.GL_VERSION) + "\"" + " - Vendor: \"" + gl.glGetString(GL.GL_VENDOR) + "\"" + " - Renderer: \"" + gl.glGetString(GL.GL_RENDERER) + "\"");
//        logger.info("Shading language version: \"" +  gl.glGetString(GL.GL_SHADING_LANGUAGE_VERSION) + "\"");
        logger.info("Non power of two texture sizes allowed: \"" + Tools3D.supportsNonPowerOfTwoTexture(this) + "\"");
        logger.info("OpenGL Framebuffer Object Extension available: \"" + GLFBO.isSupported(this) + "\"");
       
      //Set VSyncing on -> to avoid tearing
View Full Code Here

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

   */
  public static void printGLExtensions(PApplet pa){
    if (!MT4jSettings.getInstance().isOpenGlMode())
      return;
    GL gl =((PGraphicsOpenGL)pa.g).beginGL();
    String ext = gl.glGetString(GL.GL_EXTENSIONS);
    StringTokenizer tok = new StringTokenizer( ext, " " );
    while (tok.hasMoreTokens()) {
      System.out.println(tok.nextToken());
    }
     int[] redBits     = new int[1];
View Full Code Here

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

    float h = (float)height / (float)width;
           
    gl.glMatrixMode(GL2.GL_PROJECTION);

    System.err.println("GL_VENDOR: " + gl.glGetString(GL2.GL_VENDOR));
    System.err.println("GL_RENDERER: " + gl.glGetString(GL2.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL2.GL_VERSION));
    gl.glLoadIdentity();
    gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
    gl.glMatrixMode(GL2.GL_MODELVIEW);
View Full Code Here

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

    float h = (float)height / (float)width;
           
    gl.glMatrixMode(GL2.GL_PROJECTION);

    System.err.println("GL_VENDOR: " + gl.glGetString(GL2.GL_VENDOR));
    System.err.println("GL_RENDERER: " + gl.glGetString(GL2.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL2.GL_VERSION));
    gl.glLoadIdentity();
    gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
    gl.glMatrixMode(GL2.GL_MODELVIEW);
    gl.glLoadIdentity();
View Full Code Here

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

           
    gl.glMatrixMode(GL2.GL_PROJECTION);

    System.err.println("GL_VENDOR: " + gl.glGetString(GL2.GL_VENDOR));
    System.err.println("GL_RENDERER: " + gl.glGetString(GL2.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL2.GL_VERSION));
    gl.glLoadIdentity();
    gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
    gl.glMatrixMode(GL2.GL_MODELVIEW);
    gl.glLoadIdentity();
    gl.glTranslatef(0.0f, 0.0f, -40.0f);
View Full Code Here

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

            reshape3DScene(drawable.getGL().getGL2());

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

            resizing = false;
View Full Code Here

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

            reshape3DScene(drawable.getGL().getGL2());

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

            resizing = false;
        }
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.