fix: added Serializable interface to allow serialization
This commit is contained in:
parent
098a932fc9
commit
dc47138037
|
@ -13,7 +13,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* * Neither the name of 'Light Weight Java Game Library' nor the names of
|
||||
* * Neither the name of 'Lightweight Java Game Library' nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.vector;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
/**
|
||||
|
@ -42,7 +43,7 @@ import java.nio.FloatBuffer;
|
|||
* @author cix_foo <cix_foo@users.sourceforge.net>
|
||||
* @version $Revision$
|
||||
*/
|
||||
public abstract class Matrix {
|
||||
public abstract class Matrix implements Serializable {
|
||||
|
||||
/**
|
||||
* Constructor for Matrix.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* * Neither the name of 'Light Weight Java Game Library' nor the names of
|
||||
* * Neither the name of 'Lightweight Java Game Library' nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.vector;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
/**
|
||||
|
@ -42,7 +43,7 @@ import java.nio.FloatBuffer;
|
|||
* @version $Revision$
|
||||
*/
|
||||
|
||||
public class Matrix2f extends Matrix {
|
||||
public class Matrix2f extends Matrix implements Serializable {
|
||||
|
||||
public float m00 = 1.0f, m01, m10, m11 = 1.0f;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* * Neither the name of 'Light Weight Java Game Library' nor the names of
|
||||
* * Neither the name of 'Lightweight Java Game Library' nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.vector;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
/**
|
||||
|
@ -42,7 +43,7 @@ import java.nio.FloatBuffer;
|
|||
* @version $Revision$
|
||||
*/
|
||||
|
||||
public class Matrix3f extends Matrix {
|
||||
public class Matrix3f extends Matrix implements Serializable {
|
||||
|
||||
public float m00 = 1.0f,
|
||||
m01,
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* * Neither the name of 'Light Weight Java Game Library' nor the names of
|
||||
* * Neither the name of 'Lightweight Java Game Library' nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
|
@ -32,6 +32,8 @@
|
|||
package org.lwjgl.vector;
|
||||
|
||||
import org.lwjgl.Math;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
/**
|
||||
|
@ -39,7 +41,7 @@ import java.nio.FloatBuffer;
|
|||
*
|
||||
* @author foo
|
||||
*/
|
||||
public class Matrix4f extends Matrix {
|
||||
public class Matrix4f extends Matrix implements Serializable {
|
||||
|
||||
public float m00 = 1.0f, m01, m02, m03, m10, m11 = 1.0f, m12, m13, m20, m21, m22 = 1.0f, m23, m30, m31, m32, m33 = 1.0f;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2002 Light Weight Java Game Library Project
|
||||
* Copyright (c) 2002 Lightweight Java Game Library Project
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -13,7 +13,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* * Neither the name of 'Light Weight Java Game Library' nor the names of
|
||||
* * Neither the name of 'Lightweight Java Game Library' nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.vector;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
import org.lwjgl.Math;
|
||||
|
@ -43,7 +44,7 @@ import org.lwjgl.Math;
|
|||
* @author cix_foo <cix_foo@users.sourceforge.net>
|
||||
* @version $Revision$
|
||||
*/
|
||||
public abstract class Vector {
|
||||
public abstract class Vector implements Serializable {
|
||||
|
||||
/**
|
||||
* Constructor for Vector.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* * Neither the name of 'Light Weight Java Game Library' nor the names of
|
||||
* * Neither the name of 'Lightweight Java Game Library' nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.vector;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
import org.lwjgl.Math;
|
||||
|
@ -44,7 +45,7 @@ import org.lwjgl.Math;
|
|||
* @version $Revision$
|
||||
*/
|
||||
|
||||
public class Vector2f extends Vector {
|
||||
public class Vector2f extends Vector implements Serializable {
|
||||
|
||||
public float x, y;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* * Neither the name of 'Light Weight Java Game Library' nor the names of
|
||||
* * Neither the name of 'Lightweight Java Game Library' nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.vector;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
import org.lwjgl.Math;
|
||||
|
@ -44,7 +45,7 @@ import org.lwjgl.Math;
|
|||
* @version $Revision$
|
||||
*/
|
||||
|
||||
public class Vector3f extends Vector {
|
||||
public class Vector3f extends Vector implements Serializable {
|
||||
|
||||
public float x, y, z;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* * Neither the name of 'Light Weight Java Game Library' nor the names of
|
||||
* * Neither the name of 'Lightweight Java Game Library' nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.vector;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
import org.lwjgl.Math;
|
||||
|
@ -44,7 +45,7 @@ import org.lwjgl.Math;
|
|||
* @version $Revision$
|
||||
*/
|
||||
|
||||
public class Vector4f extends Vector {
|
||||
public class Vector4f extends Vector implements Serializable {
|
||||
|
||||
public float x, y, z, w;
|
||||
|
||||
|
|
Loading…
Reference in New Issue