Fixed comments
This commit is contained in:
parent
c29d074927
commit
efc2ce40f0
|
@ -71,8 +71,8 @@ public final class BufferUtils {
|
||||||
/**
|
/**
|
||||||
* Construct a direct native-order shortbuffer with the specified number
|
* Construct a direct native-order shortbuffer with the specified number
|
||||||
* of elements.
|
* of elements.
|
||||||
* @param size The size, in shorts
|
* @param size The size, in ints
|
||||||
* @return a ShortBuffer
|
* @return an IntBuffer
|
||||||
*/
|
*/
|
||||||
public static IntBuffer createIntBuffer(int size) {
|
public static IntBuffer createIntBuffer(int size) {
|
||||||
return createByteBuffer(size << 2).asIntBuffer();
|
return createByteBuffer(size << 2).asIntBuffer();
|
||||||
|
@ -81,8 +81,8 @@ public final class BufferUtils {
|
||||||
/**
|
/**
|
||||||
* Construct a direct native-order shortbuffer with the specified number
|
* Construct a direct native-order shortbuffer with the specified number
|
||||||
* of elements.
|
* of elements.
|
||||||
* @param size The size, in shorts
|
* @param size The size, in floats
|
||||||
* @return a ShortBuffer
|
* @return a FloatBuffer
|
||||||
*/
|
*/
|
||||||
public static FloatBuffer createFloatBuffer(int size) {
|
public static FloatBuffer createFloatBuffer(int size) {
|
||||||
return createByteBuffer(size << 2).asFloatBuffer();
|
return createByteBuffer(size << 2).asFloatBuffer();
|
||||||
|
|
Loading…
Reference in New Issue