OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
StaticMesh.h
Go to the documentation of this file.
1 
8 #ifndef _STATIC_MODEL_H_
9 #define _STATIC_MODEL_H_
10 
11 #include <memory>
12 
13 #include "RoomData.h"
14 
15 class StaticMesh {
16  public:
17  StaticMesh(int i, int m, BoundingBox* b1, BoundingBox* b2)
18  : id(i), mesh(m), bbox1(b1), bbox2(b2) { }
19  void display(glm::mat4 MVP);
20 
21  int getID() { return id; }
22 
23  static void setShowBoundingBox(bool s) { showBoundingBox = s; }
24  static bool getShowBoundingBox() { return showBoundingBox; }
25 
26  private:
27  int id;
28  int mesh;
29  std::unique_ptr<BoundingBox> bbox1, bbox2;
30 
31  static bool showBoundingBox;
32 };
33 
34 #endif
35 
static bool showBoundingBox
Definition: StaticMesh.h:31
std::unique_ptr< BoundingBox > bbox1
Definition: StaticMesh.h:29
std::unique_ptr< BoundingBox > bbox2
Definition: StaticMesh.h:29
static void setShowBoundingBox(bool s)
Definition: StaticMesh.h:23
StaticMesh(int i, int m, BoundingBox *b1, BoundingBox *b2)
Definition: StaticMesh.h:17
Auxiliary Room classes.
int getID()
Definition: StaticMesh.h:21
static bool getShowBoundingBox()
Definition: StaticMesh.h:24
void display(glm::mat4 MVP)
Definition: StaticMesh.cpp:14