
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
21 lines
304 B
C++
21 lines
304 B
C++
#pragma once
|
|
class Polygon3D
|
|
{
|
|
public:
|
|
Polygon3D();
|
|
Polygon3D(int index0, int index1, int index2);
|
|
Polygon3D(const Polygon3D& other);
|
|
|
|
~Polygon3D();
|
|
|
|
int GetIndex(int index) const;
|
|
|
|
Polygon3D& operator= (const Polygon3D& rhs);
|
|
|
|
private:
|
|
int _indices[3];
|
|
|
|
void Copy(const Polygon3D& other);
|
|
};
|
|
|