com.threed.jpct
Class DepthBuffer

java.lang.Object
  extended by com.threed.jpct.DepthBuffer
All Implemented Interfaces:
java.io.Serializable

public class DepthBuffer
extends java.lang.Object
implements java.io.Serializable

A DepthBuffer can be used to make textures used as render targets share the same depth buffer. By default, each texture will use it's own depth buffer, but you may want to use a unified one.
One instance can be assigned to multiple textures.
This is only valid in OpenGL ES 2.0 mode. In 1.x mode, it will have no effect.

See Also:
Serialized Form

Constructor Summary
DepthBuffer(int width, int height)
          Creates a new depth buffer.
 
Method Summary
 int getHeight()
          Returns the height.
 int getWidth()
          Returns the width.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepthBuffer

public DepthBuffer(int width,
                   int height)
Creates a new depth buffer.

Parameters:
width - the width
height - the height
Method Detail

getHeight

public int getHeight()
Returns the height.

Returns:
the height

getWidth

public int getWidth()
Returns the width.

Returns:
the width