public final class R2Stencils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALLOW_BIT
Only pixels with a corresponding stencil value that contains the
ALLOW_BIT are touched by rendering operations. |
static int |
GROUP_BITS
The bits used to store group values.
|
static int |
GROUP_LEFT_SHIFT
The left shift used to store group values;
|
static int |
LIGHT_MASK_BIT
The stencil bit used to mask the contributions of lights.
|
static int |
MAXIMUM_GROUPS
The maximum number of groups in a scene.
|
Modifier and Type | Method and Description |
---|---|
static int |
checkValidGroup(int x)
Check that
x is a valid group number. |
static boolean |
isValidGroup(int x) |
public static final int ALLOW_BIT
ALLOW_BIT
are touched by rendering operations.public static final int LIGHT_MASK_BIT
public static final int GROUP_BITS
public static final int GROUP_LEFT_SHIFT
public static final int MAXIMUM_GROUPS
public static boolean isValidGroup(int x)
x
- The group valuetrue
iff the given value is a valid stencil group valuepublic static int checkValidGroup(int x) throws R2ExceptionInvalidGroup
x
is a valid group number.x
- The group numberx
R2ExceptionInvalidGroup
- Iff x
is not validCopyright © 2017 <code@io7m.com> http://io7m.com