com.neovisionaries.android.opengl
Class DepthBuffer

java.lang.Object
  extended by com.neovisionaries.android.opengl.DepthBuffer

public final class DepthBuffer
extends Object

Depth buffer.

Author:
Takahiko Kawasaki

Method Summary
static void clear()
          Clear the depth buffer (call glClear(GL_DEPTH_BUFFER_BIT)).
static boolean isWritable()
          Check if the depth buffer is writable.
static void setClearDepth(float depth)
          Set the depth used to clear the depth buffer (call glClearDepthf(depth)).
static void setWritable(boolean writable)
          Set the depth buffer writable (call glDepthMask(writable)).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setClearDepth

public static void setClearDepth(float depth)
Set the depth used to clear the depth buffer (call glClearDepthf(depth)).

Parameters:
depth - The depth used to clear the depth buffer. From 0.0f to 1.0f.
See Also:
glClearDepthf

clear

public static void clear()
Clear the depth buffer (call glClear(GL_DEPTH_BUFFER_BIT)).

See Also:
glClear

setWritable

public static void setWritable(boolean writable)
Set the depth buffer writable (call glDepthMask(writable)).

Parameters:
writable - True to make the depth buffer writable.
See Also:
glDepthMask

isWritable

public static boolean isWritable()
Check if the depth buffer is writable.

Returns:
True if the depth buffer is writable.
See Also:
GLESState.getDepthWritemask()