diff options
author | MatejaMaric <matejamaricz@gmail.com> | 2019-07-09 00:26:42 +0200 |
---|---|---|
committer | MatejaMaric <matejamaricz@gmail.com> | 2019-07-09 00:26:42 +0200 |
commit | a7c9aeee1e68235af406e30654e4b2e5f0f7fda2 (patch) | |
tree | 492e4860bf17d196b5a79a83004aec217e69cf1e /source/Vertice.h | |
download | erender-a7c9aeee1e68235af406e30654e4b2e5f0f7fda2.tar.gz erender-a7c9aeee1e68235af406e30654e4b2e5f0f7fda2.zip |
First commit
Diffstat (limited to 'source/Vertice.h')
-rw-r--r-- | source/Vertice.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/Vertice.h b/source/Vertice.h new file mode 100644 index 0000000..c4a591b --- /dev/null +++ b/source/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();
+};
+
|