fix: added Serializable interface to allow serialization

This commit is contained in:
Brian Matzon 2003-04-30 15:38:14 +00:00
parent 098a932fc9
commit dc47138037
8 changed files with 26 additions and 17 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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,

View File

@ -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;

View File

@ -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.

View File

@ -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;

View File

@ -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;

View File

@ -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;