Added load method

This commit is contained in:
Caspian Rychlik-Prince 2002-10-06 21:34:56 +00:00
parent fa665cce33
commit b3d2deadd8
2 changed files with 9 additions and 2 deletions

View file

@ -244,7 +244,10 @@ public class Vector3f extends Vector {
* @see org.lwjgl.vector.Vector#load(FloatBuffer)
*/
public Vector load(FloatBuffer buf) {
return null;
x = buf.get();
y = buf.get();
z = buf.get();
return this;
}
/* (non-Javadoc)

View file

@ -222,7 +222,11 @@ public class Vector4f extends Vector {
* @see org.lwjgl.vector.Vector#load(FloatBuffer)
*/
public Vector load(FloatBuffer buf) {
return null;
x = buf.get();
y = buf.get();
z = buf.get();
w = buf.get();
return this;
}
/* (non-Javadoc)