to top
Android APIs
public static final enum

ProgramStore.DepthFunc

extends Enum<E extends  Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ android.renderscript.ProgramStore.DepthFunc

Class Overview

Specifies the function used to determine whether a fragment will be drawn during the depth testing stage in the rendering pipeline by comparing its value with that already in the depth buffer. DepthFunc is only valid when depth buffer is present and depth testing is enabled

Summary

Enum Values
ProgramStore.DepthFunc  ALWAYS  Always drawn  
ProgramStore.DepthFunc  EQUAL  Drawn if the incoming depth value is equal to that in the depth buffer  
ProgramStore.DepthFunc  GREATER  Drawn if the incoming depth value is greater than that in the depth buffer  
ProgramStore.DepthFunc  GREATER_OR_EQUAL  Drawn if the incoming depth value is greater or equal to that in the depth buffer  
ProgramStore.DepthFunc  LESS  Drawn if the incoming depth value is less than that in the depth buffer  
ProgramStore.DepthFunc  LESS_OR_EQUAL  Drawn if the incoming depth value is less or equal to that in the depth buffer  
ProgramStore.DepthFunc  NOT_EQUAL  Drawn if the incoming depth value is not equal to that in the depth buffer  
Public Methods

? Examples
static ProgramStore.DepthFunc valueOf( String name)

? Examples
final static DepthFunc[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ProgramStore.DepthFunc ALWAYS

Always drawn

public static final ProgramStore.DepthFunc EQUAL

Drawn if the incoming depth value is equal to that in the depth buffer

public static final ProgramStore.DepthFunc GREATER

Drawn if the incoming depth value is greater than that in the depth buffer

public static final ProgramStore.DepthFunc GREATER_OR_EQUAL

Drawn if the incoming depth value is greater or equal to that in the depth buffer

public static final ProgramStore.DepthFunc LESS

Drawn if the incoming depth value is less than that in the depth buffer

public static final ProgramStore.DepthFunc LESS_OR_EQUAL

Drawn if the incoming depth value is less or equal to that in the depth buffer

public static final ProgramStore.DepthFunc NOT_EQUAL

Drawn if the incoming depth value is not equal to that in the depth buffer

Public Methods

public static ProgramStore.DepthFunc valueOf (String name)

Added in API level 11

public static final DepthFunc[] values ()

Added in API level 11

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.