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:
29
Model.h
Normal file
29
Model.h
Normal file
@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include "Polygon3D.h"
|
||||
#include "Vertex.h"
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Model
|
||||
{
|
||||
public:
|
||||
Model();
|
||||
|
||||
~Model();
|
||||
|
||||
const vector<Polygon3D>& GetPolygons();
|
||||
const vector<Vertex>& GetVertices();
|
||||
|
||||
size_t GetPolygonCount();
|
||||
size_t GetVerticesCount();
|
||||
|
||||
void AddVertex(float x, float y, float z);
|
||||
void AddPolygon(int index0, int index1, int index2);
|
||||
|
||||
private:
|
||||
vector<Polygon3D> _polygons;
|
||||
vector<Vertex> _vertices;
|
||||
};
|
||||
|
Reference in New Issue
Block a user