Examples of makeCurrent()


Examples of org.lwjgl.opengl.Pbuffer.makeCurrent()

    try {
      pbuffer = new Pbuffer(width, height, new PixelFormat(16, 0, 0, 0, 0), null, null);

      // Initialise state of the pbuffer context.
      pbuffer.makeCurrent();

      PbufferTest.initGLState(width, height, 0.5f);
      glBindTexture(GL_TEXTURE_2D, texID);

      Display.makeCurrent();
View Full Code Here

Examples of org.lwjgl.opengl.Pbuffer.makeCurrent()

    try {
      final RenderTexture rt = new RenderTexture(true, false, false, false, RenderTexture.RENDER_TEXTURE_2D, 0);
      pbuffer = new Pbuffer(width, height, new PixelFormat(16, 0, 0, 0, 0), rt, null);

      // Initialise state of the pbuffer context.
      pbuffer.makeCurrent();

      PbufferTest.initGLState(width, height, 0.5f);
      glBindTexture(GL_TEXTURE_2D, texID);

      Display.makeCurrent();
View Full Code Here

Examples of org.lwjgl.opengl.Pbuffer.makeCurrent()

  public int getMaxAA() throws LWJGLException {
    int result = 0;
    PixelFormat format = new PixelFormat(0, 24, 0, 0);
    Pbuffer pb = new Pbuffer(10, 10, format, null);
    pb.makeCurrent();
    if (GLContext.getCapabilities().GL_ARB_multisample) {
      result = glGetInteger(GL30.GL_MAX_SAMPLES);
    }
    pb.destroy();
    return result;
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.