Examples of Pbuffer


Examples of org.lwjgl.opengl.Pbuffer

   *
   * @throws SlickException Indicates a failure to create the shared drawable
   */
  public static void enableSharedContext() throws SlickException {
    try {
      SHARED_DRAWABLE = new Pbuffer(64, 64, new PixelFormat(8, 0, 0), null);
    } catch (LWJGLException e) {
      throw new SlickException("Unable to create the pbuffer used for shard context, buffers not supported", e);
    }
  }
View Full Code Here

Examples of org.lwjgl.opengl.Pbuffer

  }

  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

Examples of org.lwjgl.opengl.Pbuffer

            pbuffer.destroy();
            pbuffer = null;
        }
       
        if (pbuffer == null) {
            pbuffer = new Pbuffer(1, 1, acquirePixelFormat(true), null);
            pbuffer.makeCurrent();
            logger.log(Level.FINE, "OGL: Pbuffer has been created");
           
            // Any created objects are no longer valid
            if (!runningFirstTime){
View Full Code Here

Examples of org.lwjgl.opengl.Pbuffer

   *
   * @throws SlickException Indicates a failure to create the shared drawable
   */
  public static void enableSharedContext() throws SlickException {
    try {
      SHARED_DRAWABLE = new Pbuffer(64, 64, new PixelFormat(8, 0, 0), null);
    } catch (LWJGLException e) {
      throw new SlickException("Unable to create the pbuffer used for shard context, buffers not supported", e);
    }
  }
View Full Code Here

Examples of org.lwjgl.opengl.Pbuffer

   */
  private void init() throws SlickException {
    try {
      Texture tex = InternalTextureLoader.get().createTexture(image.getWidth(), image.getHeight(), image.getFilter());

      pbuffer = new Pbuffer(screenWidth, screenHeight, new PixelFormat(8, 0, 0), null, null);
      // Initialise state of the pbuffer context.
      pbuffer.makeCurrent();

      initGL();
      image.draw(0,0);
View Full Code Here

Examples of org.lwjgl.opengl.Pbuffer

  private void init() throws SlickException {
    try {
      Texture tex = InternalTextureLoader.get().createTexture(image.getWidth(), image.getHeight(), image.getFilter());
     
      final RenderTexture rt = new RenderTexture(false, true, false, false, RenderTexture.RENDER_TEXTURE_2D, 0);
      pbuffer = new Pbuffer(screenWidth, screenHeight, new PixelFormat(8, 0, 0), rt, null);

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

      initGL();
View Full Code Here

Examples of org.lwjgl.opengl.Pbuffer

   *
   * @throws SlickException Indicates a failure to create the shared drawable
   */
  public static void enableSharedContext() throws SlickException {
    try {
      SHARED_DRAWABLE = new Pbuffer(64, 64, new PixelFormat(8, 0, 0), null);
    } catch (LWJGLException e) {
      throw new SlickException("Unable to create the pbuffer used for shard context, buffers not supported", e);
    }
  }
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.