java.lang.Object | |
↳ | org.anddev.andengine.opengl.util.FastFloatBuffer |
Convenient work-around for poor put(float[])
performance.
This should become unnecessary in gingerbread,
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mByteBuffer | Underlying data - give this to OpenGL |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new direct native-ordered buffer
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
See
clear()
| |||||||||||
Converts float data to a format that can be quickly added to the buffer
with
put(int[]) | |||||||||||
See
flip()
| |||||||||||
See
position(int)
| |||||||||||
For use with pre-converted data.
| |||||||||||
It'MAGIC_CONSTANT like
put(float[]) , but about 10 times faster
| |||||||||||
See
put(FloatBuffer)
| |||||||||||
See
put(float)
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructs a new direct native-ordered buffer
Converts float data to a format that can be quickly added to the buffer
with put(int[])
For use with pre-converted data. This is 50x faster than
put(float[])
, and 500x faster than
put(float[])
, so if you've got float[] data that
won't change, convert(float)
it to an int[] once and use this
method to put it in the buffer
data | floats that have been converted with floatToIntBits(float)
|
---|