Changeset 1040
- Timestamp:
- Oct 31, 2011, 9:19:05 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/deushax/deushax.cpp
r961 r1040 18 18 19 19 #include "game.h" 20 #include "platform/sdl/sdlapp.h"21 #include "platform/sdl/sdlinput.h"22 20 #include "debugsprite.h" 23 21 … … 32 30 int main(int argc, char **argv) 33 31 { 34 SdlApp app("Map Test (SDL)", ivec2(640, 480), 30.0f);32 Application app("Map Test", ivec2(640, 480), 30.0f); 35 33 36 34 #if defined _WIN32 … … 41 39 42 40 /* Register an input driver and some debug stuff */ 43 new SdlInput();44 41 new DebugFps(10, 10); 45 42 new DebugSprite(game); -
trunk/monsterz/monsterz.cpp
r961 r1040 24 24 using namespace lol; 25 25 26 #if defined __CELLOS_LV2__27 # include "platform/ps3/ps3app.h"28 # include "platform/ps3/ps3input.h"29 #elif defined HAVE_GLES_2X30 # include "eglapp.h"31 #else32 # include "platform/sdl/sdlapp.h"33 # include "platform/sdl/sdlinput.h"34 #endif35 26 #include "interface.h" 36 27 … … 45 36 int main(int argc, char **argv) 46 37 { 47 #if defined __CELLOS_LV2__ 48 Ps3App app("Monsterz", ivec2(640, 480), 60.0f); 49 #elif defined HAVE_GLES_2X 50 EglApp app("Monsterz", ivec2(640, 480), 60.0f); 51 #else 52 SdlApp app("Monsterz", ivec2(640, 480), 60.0f); 53 #endif 38 Application app("Monsterz", ivec2(640, 480), 60.0f); 54 39 55 40 #if defined _WIN32 … … 57 42 #endif 58 43 59 /* Register an input driver and some debug stuff */ 60 #if defined __CELLOS_LV2__ 61 new Ps3Input(); 62 #elif !defined HAVE_GLES_2X 63 new SdlInput(); 64 #endif 44 /* Register some debug stuff */ 45 new DebugFps(20, 20); 46 65 47 new Interface(); 66 new DebugFps(20, 20);67 48 //new DebugRecord("monsterz.ogm", FPS); 68 49 -
trunk/src/Makefile.am
r1036 r1040 16 16 lol/unit.h \ 17 17 \ 18 application/application.cpp application/application.h \ 18 19 eglapp.cpp eglapp.h \ 19 20 \ -
trunk/src/core.h
r965 r1040 99 99 #include "shader/shader.h" 100 100 #include "image/image.h" 101 #include "application/application.h" 101 102 102 103 // Managers -
trunk/src/platform/ps3/ps3app.cpp
r865 r1040 103 103 Video::Setup(res); 104 104 Audio::Setup(2); 105 106 /* Autoreleased objects */ 107 new Ps3Input(); 105 108 #endif 106 109 } -
trunk/src/platform/sdl/sdlapp.cpp
r865 r1040 20 20 #include "lolgl.h" 21 21 #include "platform/sdl/sdlapp.h" 22 #include "platform/sdl/sdlinput.h" 22 23 23 24 namespace lol … … 68 69 Video::Setup(ivec2(video->w, video->h)); 69 70 Audio::Setup(2); 71 72 /* Autoreleased objects */ 73 new SdlInput(); 70 74 #endif 71 75 } -
trunk/test/debug/quad.cpp
r961 r1040 20 20 using namespace lol; 21 21 22 #if defined __CELLOS_LV2__23 # include "platform/ps3/ps3app.h"24 #elif defined HAVE_GLES_2X25 # include "eglapp.h"26 #else27 # include "platform/sdl/sdlapp.h"28 # include "platform/sdl/sdlinput.h"29 #endif30 31 22 #if USE_SDL && defined __APPLE__ 32 23 # include <SDL_main.h> … … 39 30 int main(int argc, char **argv) 40 31 { 41 #if defined __CELLOS_LV2__ 42 Ps3App app("Quad", ivec2(640, 480), 60.0f); 43 #elif defined HAVE_GLES_2X 44 EglApp app("Quad", ivec2(640, 480), 60.0f); 45 #else 46 SdlApp app("Quad", ivec2(640, 480), 60.0f); 47 #endif 32 Application app("Quad", ivec2(640, 480), 60.0f); 48 33 49 /* Register an input driver and some debug stuff */ 50 #if !defined HAVE_GLES_2X 51 new SdlInput(); 52 #endif 34 /* Register some debug stuff */ 53 35 new DebugFps(5, 5); 54 36 new DebugQuad();
Note: See TracChangeset
for help on using the changeset viewer.