Week5 [26/10]
Added the Z Access to the Matrix class Added the Identity Matrix Method to the Matrix Class Added MD2Loader Class Added Model Class Added Polygon Class Added Clear Viewport Method to Rasterizer Added Z Axis to the Vertex Class Updated Transformation Matrices to pass a matrix back so that we can do the multiplication at once
This commit is contained in:
8
Vertex.h
8
Vertex.h
@ -3,7 +3,8 @@ class Vertex
|
||||
{
|
||||
public:
|
||||
Vertex();
|
||||
Vertex(float x, float y, float w);
|
||||
Vertex(const float x, const float y, const float z);
|
||||
Vertex(const float x, const float y, const float z, const float w);
|
||||
Vertex(const Vertex& other);
|
||||
|
||||
// Accessors
|
||||
@ -11,6 +12,8 @@ public:
|
||||
void SetX(const float x);
|
||||
float GetY() const;
|
||||
void SetY(const float y);
|
||||
float GetZ() const;
|
||||
void SetZ(const float z);
|
||||
float GetW() const;
|
||||
void SetW(const float w);
|
||||
|
||||
@ -24,6 +27,9 @@ public:
|
||||
private:
|
||||
float _x;
|
||||
float _y;
|
||||
float _z;
|
||||
float _w;
|
||||
|
||||
void Copy(const Vertex& other);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user