runtime/blitz3d: Fixup C++ification

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-01-18 21:26:42 +01:00
parent 077776b704
commit 3afa84df85
71 changed files with 372 additions and 570 deletions
+7 -10
View File
@@ -1,8 +1,7 @@
#ifndef MD2REP_H
#define MD2REP_H
#pragma once
#include "model.hpp"
#include <string>
#include <vector>
class MD2Rep {
public:
@@ -10,7 +9,7 @@ class MD2Rep {
Vector coords, normal;
};
MD2Rep(const string& f);
MD2Rep(const std::string& f);
virtual ~MD2Rep();
void render(Vert* verts, int frame);
@@ -46,15 +45,13 @@ class MD2Rep {
struct Frame {
Vector scale, trans;
vector<Vertex> verts;
std::vector<Vertex> verts;
};
Box box;
gxMesh* mesh;
int n_frames;
int n_verts, n_tris;
vector<Frame> frames;
vector<VertexUV> uvs;
std::vector<Frame> frames;
std::vector<VertexUV> uvs;
};
#endif