libgdx API

com.badlogic.gdx.graphics.glutils
Class FloatFrameBuffer

java.lang.Object
  extended by com.badlogic.gdx.graphics.glutils.FrameBuffer
      extended by com.badlogic.gdx.graphics.glutils.FloatFrameBuffer
All Implemented Interfaces:
Disposable

public class FloatFrameBuffer
extends FrameBuffer

This is a FrameBuffer variant backed by a float texture.


Field Summary
 
Fields inherited from class com.badlogic.gdx.graphics.glutils.FrameBuffer
colorTexture, format, hasDepth, height, width
 
Constructor Summary
FloatFrameBuffer(int width, int height, boolean hasDepth)
          Creates a new FrameBuffer with a float backing texture, having the given dimensions and potentially a depth buffer attached.
 
Method Summary
protected  void setupTexture()
          Override this method in a derived class to set up the backing texture as you like.
 
Methods inherited from class com.badlogic.gdx.graphics.glutils.FrameBuffer
begin, clearAllFrameBuffers, dispose, end, getColorBufferTexture, getHeight, getManagedStatus, getWidth, invalidateAllFrameBuffers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatFrameBuffer

public FloatFrameBuffer(int width,
                        int height,
                        boolean hasDepth)
Creates a new FrameBuffer with a float backing texture, having the given dimensions and potentially a depth buffer attached.

Parameters:
width - the width of the framebuffer in pixels
height - the height of the framebuffer in pixels
hasDepth - whether to attach a depth buffer
Throws:
GdxRuntimeException - in case the FrameBuffer could not be created
Method Detail

setupTexture

protected void setupTexture()
Override this method in a derived class to set up the backing texture as you like.

Overrides:
setupTexture in class FrameBuffer

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)