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:
14
MD2Loader.h
Normal file
14
MD2Loader.h
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include "Model.h"
|
||||
|
||||
// Declare typedefs used by the MD2Loader to call the methods to add a vertex and
|
||||
// add a polygon to the lists
|
||||
|
||||
typedef void (Model::*AddVertex)(float x, float y, float z);
|
||||
typedef void (Model::*AddPolygon)(int i0, int i1, int i2);
|
||||
|
||||
class MD2Loader
|
||||
{
|
||||
public:
|
||||
static bool LoadModel(const char* md2Filename, Model& model, AddPolygon addPolygon, AddVertex addVertex);
|
||||
};
|
Reference in New Issue
Block a user