aboutsummaryrefslogtreecommitdiff
path: root/src/Vertice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Vertice.h')
-rw-r--r--src/Vertice.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Vertice.h b/src/Vertice.h
new file mode 100644
index 0000000..c4a591b
--- /dev/null
+++ b/src/Vertice.h
@@ -0,0 +1,14 @@
+#include"Vector4f.h"
+class Vertice : public Vector4f
+{
+public:
+ float u, v;
+ Vertice();
+ Vertice(float x_, float y_, float z_, float u_, float v_);
+ Vertice(float x_, float y_, float z_, float w_, float u_, float v_);
+ void screenspace(int screenWidth, int screenHeight);
+ Vertice multiplyMatrix(const Matrix4f& a);
+ Vertice& operator= (const Vector4f& a);
+ Vertice divideW();
+};
+