Procházet zdrojové kódy

Enabled MULTITEXTURE in debug builds

Thomas Buck před 10 roky
rodič
revize
ae24b5951f
4 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. 1
    1
      CMakeLists.txt
  2. 1
    0
      TODO.md
  3. 0
    1
      src/Entity.cpp
  4. 5
    0
      src/Room.cpp

+ 1
- 1
CMakeLists.txt Zobrazit soubor

@@ -58,7 +58,7 @@ set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} ${WARNINGS}")
58 58
 # Flags for Debug build
59 59
 set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -DDEBUG")
60 60
 set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -DEXPERIMENTAL")
61
-# set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -DMULTITEXTURE")
61
+set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -DMULTITEXTURE")
62 62
 
63 63
 # Flags for Releasae builds
64 64
 set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -DNDEBUG")

+ 1
- 0
TODO.md Zobrazit soubor

@@ -9,6 +9,7 @@
9 9
     * Use std::strings
10 10
     * Rewrite Console and use operator << to write to the console?
11 11
 * SDL_TTF 2.0.12+ can do line breaks, use it: http://stackoverflow.com/questions/17847818/how-to-do-line-breaks-and-line-wrapping-with-sdl-ttf/18418688#18418688
12
+* Mesh has 2 different approaches of storing the same data (eg. mColors and mColorArray), but half of ‘em isn’t implemented. Unify this, probably even reusing the Mesh class for the model_meshes...
12 13
 
13 14
 ## Changes
14 15
 

+ 0
- 1
src/Entity.cpp Zobrazit soubor

@@ -104,7 +104,6 @@ void Entity::move(char movement) {
104 104
             return;
105 105
     }
106 106
 
107
-    //room = getRoomByLocation(x, y, z);
108 107
     roomNew = getWorld().getRoomByLocation(room, x, y, z);
109 108
 
110 109
     if (roomNew == -1) { // Will we hit a portal?

+ 5
- 0
src/Room.cpp Zobrazit soubor

@@ -13,6 +13,11 @@
13 13
 #include "Render.h"
14 14
 #include "Room.h"
15 15
 
16
+#ifdef MULTITEXTURE
17
+#include <map>
18
+extern std::map<int, int> gMapTex2Bump;
19
+#endif
20
+
16 21
 Room::Room(TombRaider &tr, unsigned int index) {
17 22
     vec3_t box[2];
18 23
     Matrix transform;

Loading…
Zrušit
Uložit