
Added Camera Class Added *= operator to the matrix class Added Transformation Queue vector to the Model Class Added Get Vertex, Polygon and Polygon Vertex methods to the Model Class Added DehomogenizeAllVerticies method to the Model Class Added GetPolygonVertexCount method to Polygon Class Added Ability to have multiple models in a "scene" in the Rasterizer Added DrawWireFrame method to the Rasterizer Class Added Aspect Ratio and View Matrix to the Rasterizer Class Added TransformTools namespace to hold shared transformation functions Added Dehomogenize method to the Vector Class Moved Transformation methods to a new shared name space
23 lines
397 B
C++
23 lines
397 B
C++
#pragma once
|
|
class Polygon3D
|
|
{
|
|
public:
|
|
Polygon3D();
|
|
Polygon3D(int index0, int index1, int index2);
|
|
Polygon3D(const Polygon3D& other);
|
|
|
|
~Polygon3D();
|
|
|
|
size_t GetPolygonVertexCount();
|
|
|
|
int GetIndex(int index) const;
|
|
|
|
Polygon3D& operator= (const Polygon3D& rhs);
|
|
|
|
private:
|
|
int _indices[3];
|
|
|
|
void Copy(const Polygon3D& other);
|
|
};
|
|
|