Package com.badlogic.gdx.graphics.glutils

Examples of com.badlogic.gdx.graphics.glutils.FrameBuffer


  private int ownedW, ownedH;

  /** Creates a new ping-pong buffer and owns the resources. */
  public PingPongBuffer (int width, int height, Format frameBufferFormat, boolean hasDepth) {
    ownResources = true;
    owned1 = new FrameBuffer(frameBufferFormat, width, height, hasDepth);
    owned2 = new FrameBuffer(frameBufferFormat, width, height, hasDepth);
    set(owned1, owned2);
  }
View Full Code Here


      blur.setPasses(1);
      blur.setAmount(1f);
      // blur.setType( BlurType.Gaussian3x3b ); // high defocus
      blur.setType(BlurType.Gaussian3x3); // modern machines defocus
    } else {
      buffer = new FrameBuffer(PostProcessor.getFramebufferFormat(), fboWidth, fboHeight, false);
    }

    combine = new Combine();
    crt = new CrtScreen(barrelDistortion, mode, effectsSupport);
  }
View Full Code Here

    if (fboWidth <= 0)
      fboWidth = 1;
    if (fboHeight <= 0)
      fboHeight = 1;
    frameBuffer = new FrameBuffer(Format.RGBA8888, fboWidth,
        fboHeight, false);
    pingPongBuffer = new FrameBuffer(Format.RGBA8888, fboWidth,
        fboHeight, false);

    lightMapMesh = createLightMapMesh();

    shadowShader = ShadowShader.createShadowShader();
View Full Code Here

    if (fboWidth <= 0)
      fboWidth = 1;
    if (fboHeight <= 0)
      fboHeight = 1;
    frameBuffer = new FrameBuffer(Format.RGBA8888, fboWidth,
        fboHeight, false);
    pingPongBuffer = new FrameBuffer(Format.RGBA8888, fboWidth,
        fboHeight, false);

    lightMapMesh = createLightMapMesh();

    shadowShader = ShadowShader.createShadowShader();
View Full Code Here

      } else {
        format = Format.RGB565;
      }
    }
    if (fbo == null) {
      frameBuffer = new FrameBuffer(format, Gdx.graphics.getWidth(),
          Gdx.graphics.getHeight(), hasDepth);
    } else {
      frameBuffer = fbo;
    }

    pingPongBuffer1 = new FrameBuffer(format, FBO_W, FBO_H, false);

    pingPongBuffer2 = new FrameBuffer(format, FBO_W, FBO_H, false);

    original = frameBuffer.getColorBufferTexture();
    pingPongTex1 = pingPongBuffer1.getColorBufferTexture();
    pingPongTex2 = pingPongBuffer2.getColorBufferTexture();
View Full Code Here

      } else {
        format = Format.RGB565;
      }
    }
    if (fbo == null) {
      frameBuffer = new FrameBuffer(format, Gdx.graphics.getWidth(),
          Gdx.graphics.getHeight(), hasDepth);
    } else {
      frameBuffer = fbo;
    }

    pingPongBuffer1 = new FrameBuffer(format, FBO_W, FBO_H, false);

    pingPongBuffer2 = new FrameBuffer(format, FBO_W, FBO_H, false);

    original = frameBuffer.getColorBufferTexture();
    pingPongTex1 = pingPongBuffer1.getColorBufferTexture();
    pingPongTex2 = pingPongBuffer2.getColorBufferTexture();
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.glutils.FrameBuffer

Copyright © 2018 www.massapicom. 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.