Created 7-jan-2004
| Modifier and Type | Field and Description |
|---|---|
| private static IntBuffer | scratch
temp IntBuffer of one for getting an int from some GL functions |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static int | |
| protected static int | |
| protected static int | |
| protected static void | |
| protected static int | Returns: intConvenience method for returning an int, rather than getting it out of a buffer yourself. |
| protected static int | |
| protected static float[] |
| scratch | back to summary |
|---|---|
| private static IntBuffer scratch temp IntBuffer of one for getting an int from some GL functions | |
| Util | back to summary |
|---|---|
| public Util() | |
| bytesPerPixel | back to summary |
|---|---|
| protected static int bytesPerPixel(int format, int type) Method bytesPerPixel.
| |
| ceil | back to summary |
|---|---|
| protected static int ceil(int a, int b) Return ceiling of integer division
| |
| compPerPix | back to summary |
|---|---|
| protected static int compPerPix(int format) Method compPerPix.
| |
| cross | back to summary |
|---|---|
| protected static void cross(float[] v1, float[] v2, float[] result) Calculate cross-product | |
| glGetIntegerv | back to summary |
|---|---|
| protected static int glGetIntegerv(int what) Convenience method for returning an int, rather than getting it out of a buffer yourself.
| |
| nearestPower | back to summary |
|---|---|
| protected static int nearestPower(int value) Method nearestPower. Compute the nearest power of 2 number. This algorithm is a little strange, but it works quite well.
| |
| normalize | back to summary |
|---|---|
| protected static float[] normalize(float[] v) Normalize vector
| |