Files
Graphics-Rasterizer/MD2Loader.h
IDunnoDev 3b374c1e17 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
2021-12-11 13:24:09 +00:00

15 lines
405 B
C++

#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);
};