| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
bytesPerPixel(int format,
int type)
Method bytesPerPixel.
|
protected static int |
ceil(int a,
int b)
Return ceiling of integer division
|
protected static int |
compPerPix(int format)
Method compPerPix.
|
protected static void |
cross(float[] v1,
float[] v2,
float[] result)
Calculate cross-product
|
protected static int |
glGetIntegerv(int what)
Convenience method for returning an int, rather than getting it out of a buffer yourself.
|
protected static int |
nearestPower(int value)
Method nearestPower.
|
protected static float[] |
normalize(float[] v)
Normalize vector
|
protected static int ceil(int a,
int b)
a - b - protected static float[] normalize(float[] v)
v - protected static void cross(float[] v1,
float[] v2,
float[] result)
v1 - v2 - result - protected static int compPerPix(int format)
format - protected static int nearestPower(int value)
value - protected static int bytesPerPixel(int format,
int type)
format - type - protected static int glGetIntegerv(int what)
what - Copyright © 2002-2009 lwjgl.org. All Rights Reserved.