de.grogra.imp3d.gl20
public class GL20Const extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_CHANGED
a mask that indicates that ALL has changed
|
static Matrix4d |
identityMatrix4d
a identity matrix 4x4
|
static int |
INVALID_ID
an invalid id
|
| Constructor and Description |
|---|
GL20Const() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getFirstBitPosition(int value)
return the first appearance of a set bit starting at the LSB
|
static boolean |
isPowerOf2(int value)
check if a given value is a number in Power-of-2 format
|
public static final int ALL_CHANGED
public static final Matrix4d identityMatrix4d
public static final int INVALID_ID
public static final int getFirstBitPosition(int value)
value - the value that should checked-1 no bit is set
otherwise position of the first set bitpublic static final boolean isPowerOf2(int value)
value - number that should checkedtrue given number is in Power-of-2 format
false given number is not Power-of-2 format