Pārlūkot izejas kodu

Added processing code. Segfault on level load.

Thomas Buck 11 gadus atpakaļ
vecāks
revīzija
024206ac6c
2 mainītis faili ar 1620 papildinājumiem un 11 dzēšanām
  1. 18
    0
      include/Game.h
  2. 1602
    11
      src/Game.cpp

+ 18
- 0
include/Game.h Parādīt failu

8
 #ifndef _GAME_H_
8
 #ifndef _GAME_H_
9
 #define _GAME_H_
9
 #define _GAME_H_
10
 
10
 
11
+#include <list>
12
+
11
 #include "Camera.h"
13
 #include "Camera.h"
12
 #include "global.h"
14
 #include "global.h"
13
 #include "Render.h"
15
 #include "Render.h"
14
 #include "TombRaider.h"
16
 #include "TombRaider.h"
15
 #include "World.h"
17
 #include "World.h"
16
 
18
 
19
+typedef enum {
20
+    Flag_DebugModel = (1 << 0)
21
+} GameFlags;
22
+
17
 /*!
23
 /*!
18
  * \brief Game abstraction
24
  * \brief Game abstraction
19
  */
25
  */
45
 
51
 
46
 private:
52
 private:
47
 
53
 
54
+    void processPakSounds();
55
+    void processTextures();
56
+    void processSprites();
57
+    void processMoveables();
58
+    void processMoveable(int index, int i, int *ent,
59
+                            std::vector<skeletal_model_t *> &cache2,
60
+                            std::vector<unsigned int> &cache, int object_id);
61
+    void processModel(int index);
62
+    void processRoom(int index);
63
+    void setupTextureColor(texture_tri_t *r_tri, float *colorf);
64
+
48
     bool mLoaded;
65
     bool mLoaded;
49
     char *mName;
66
     char *mName;
67
+    unsigned int mFlags;
50
     TombRaider mTombRaider;
68
     TombRaider mTombRaider;
51
 
69
 
52
     unsigned int mTextureStart;
70
     unsigned int mTextureStart;

+ 1602
- 11
src/Game.cpp
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt