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:
6
Matrix.h
6
Matrix.h
@ -4,8 +4,8 @@
|
||||
#include <initializer_list>
|
||||
|
||||
// Size of the matrix
|
||||
const int COLS = 3;
|
||||
const int ROWS = 3;
|
||||
const int COLS = 4;
|
||||
const int ROWS = 4;
|
||||
|
||||
class Matrix
|
||||
{
|
||||
@ -25,6 +25,8 @@ public:
|
||||
void SetMatrixCell(const int row, const int column, const float value);
|
||||
void FromArray(const float arrayIn[ROWS][COLS]);
|
||||
|
||||
Matrix IdentityMatrix();
|
||||
|
||||
Matrix& operator= (const Matrix& rhs);
|
||||
|
||||
bool operator==(const Matrix& other) const;
|
||||
|
Reference in New Issue
Block a user