Browse Source

core: move platform-specific code to specific directories.

legacy
Sam Hocevar sam 13 years ago
parent
commit
b111f7e3d8
11 changed files with 9 additions and 7 deletions
  1. +5
    -3
      src/Makefile.am
  2. +0
    -0
      src/platform/android/androidapp.cpp
  3. +0
    -0
      src/platform/ps3/ps3app.cpp
  4. +0
    -0
      src/platform/ps3/ps3app.h
  5. +0
    -0
      src/platform/ps3/ps3input.cpp
  6. +0
    -0
      src/platform/ps3/ps3input.h
  7. +1
    -1
      src/platform/sdl/sdlapp.cpp
  8. +0
    -0
      src/platform/sdl/sdlapp.h
  9. +0
    -0
      src/platform/sdl/sdlinput.cpp
  10. +0
    -0
      src/platform/sdl/sdlinput.h
  11. +3
    -3
      test/debug/quad.cpp

+ 5
- 3
src/Makefile.am View File

@@ -12,11 +12,13 @@ liblol_a_SOURCES = \
worldentity.cpp worldentity.h gradient.cpp gradient.h \
platform.cpp platform.h sprite.cpp sprite.h \
\
sdlapp.cpp sdlapp.h sdlinput.cpp sdlinput.h \
\
eglapp.cpp eglapp.h \
\
ps3app.cpp ps3app.h ps3input.cpp ps3input.h \
platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \
platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h \
\
platform/ps3/ps3app.cpp platform/ps3/ps3app.h \
platform/ps3/ps3input.cpp platform/ps3/ps3input.h \
\
shader/shader.cpp shader/shader.h \
\


src/androidapp.cpp → src/platform/android/androidapp.cpp View File


src/ps3app.cpp → src/platform/ps3/ps3app.cpp View File


src/ps3app.h → src/platform/ps3/ps3app.h View File


src/ps3input.cpp → src/platform/ps3/ps3input.cpp View File


src/ps3input.h → src/platform/ps3/ps3input.h View File


src/sdlapp.cpp → src/platform/sdl/sdlapp.cpp View File

@@ -18,7 +18,7 @@

#include "core.h"
#include "lolgl.h"
#include "sdlapp.h"
#include "platform/sdl/sdlapp.h"

namespace lol
{

src/sdlapp.h → src/platform/sdl/sdlapp.h View File


src/sdlinput.cpp → src/platform/sdl/sdlinput.cpp View File


src/sdlinput.h → src/platform/sdl/sdlinput.h View File


+ 3
- 3
test/debug/quad.cpp View File

@@ -20,12 +20,12 @@ using namespace std;
using namespace lol;

#if defined __CELLOS_LV2__
# include "ps3app.h"
# include "platform/ps3/ps3app.h"
#elif defined HAVE_GLES_2X
# include "eglapp.h"
#else
# include "sdlapp.h"
# include "sdlinput.h"
# include "platform/sdl/sdlapp.h"
# include "platform/sdl/sdlinput.h"
#endif

#if defined _WIN32


Loading…
Cancel
Save