]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vector.h
Allow the maximum mipmap level of a texture to be specified
[libs/gl.git] / source / vector.h
index d1693af101ab04c5806038b247264302704e5295..5a4ffb666c4cc5b3c778fa4358cd41317ce5e6c5 100644 (file)
@@ -1,33 +1,13 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_VECTOR_H_
 #define MSP_GL_VECTOR_H_
 
+#include <msp/linal/vector.h>
+
 namespace Msp {
 namespace GL {
 
-struct Vector3
-{
-       float x, y, z;
-
-       Vector3(): x(0), y(0), z(0) { }
-       Vector3(float x_, float y_, float z_): x(x_), y(y_), z(z_) { }
-};
-
-struct Vector4
-{
-       float x, y, z, w;
-
-       Vector4(): x(0), y(0), z(0), w(1) { }
-       Vector4(float x_, float y_, float z_): x(x_), y(y_), z(z_), w(1) { }
-       Vector4(float x_, float y_, float z_, float w_): x(x_), y(y_), z(z_), w(w_) { }
-       Vector4(const Vector3 &v): x(v.x), y(v.y), z(v.z), w(1) { }
-};
+typedef LinAl::Vector<float, 3> Vector3;
+typedef LinAl::Vector<float, 4> Vector4;
 
 } // namespace GL
 } // namespace Msp