Selaa lähdekoodia

sdl: move files around in separate directories.

legacy
Sam Hocevar 5 vuotta sitten
vanhempi
commit
d3d84948d4
10 muutettua tiedostoa jossa 27 lisäystä ja 37 poistoa
  1. +0
    -1
      doc/tutorial/12_voronoi.cpp
  2. +2
    -2
      src/Makefile.am
  3. +1
    -2
      src/application/application.cpp
  4. +2
    -2
      src/application/sdl-app.cpp
  5. +0
    -0
      src/application/sdl-app.h
  6. +1
    -8
      src/eglapp.cpp
  7. +1
    -2
      src/input/sdl-input.cpp
  8. +0
    -0
      src/input/sdl-input.h
  9. +12
    -12
      src/lol-core.vcxproj
  10. +8
    -8
      src/lol-core.vcxproj.filter

+ 0
- 1
doc/tutorial/12_voronoi.cpp Näytä tiedosto

@@ -67,7 +67,6 @@ public:
m_timer = -1.0f;
mode = 0;
m_controller = new Controller("Default");
m_controller->SetInputCount(KEY_MAX, 0);
m_controller->GetKey(KEY_ESC).Bind("Keyboard", "Escape");
m_controller->GetKey(KEY_PUSH).Bind("Keyboard", "p");
m_controller->GetKey(KEY_POP).Bind("Keyboard", "o");


+ 2
- 2
src/Makefile.am Näytä tiedosto

@@ -141,8 +141,8 @@ liblol_core_sources = \

if LOL_USE_SDL
sdl_sources = \
platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \
platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h
application/sdl-app.cpp application/sdl-app.h \
input/sdl-input.cpp input/sdl-input.h
endif

d3d9_sources = \


+ 1
- 2
src/application/application.cpp Näytä tiedosto

@@ -21,8 +21,7 @@
#if __ANDROID__
# include "platform/android/androidapp.h"
#elif LOL_USE_SDL
# include "platform/sdl/sdlapp.h"
# include "platform/sdl/sdlinput.h"
# include "application/sdl-app.h"
#elif HAVE_GLES_2X
# include "eglapp.h"
#endif


src/platform/sdl/sdlapp.cpp → src/application/sdl-app.cpp Näytä tiedosto

@@ -21,8 +21,8 @@
#endif

#include "lolgl.h"
#include "platform/sdl/sdlapp.h"
#include "platform/sdl/sdlinput.h"
#include "application/sdl-app.h"
#include "input/sdl-input.h"
#if LOL_USE_XINPUT
# include "platform/d3d9/d3d9input.h"
#endif

src/platform/sdl/sdlapp.h → src/application/sdl-app.h Näytä tiedosto


+ 1
- 8
src/eglapp.cpp Näytä tiedosto

@@ -27,18 +27,11 @@
#endif

#if LOL_USE_SDL
# if HAVE_SDL2_SDL_H
# include <SDL2/SDL.h>
# elif HAVE_SDL_H
# include <SDL.h>
# endif
# include "input/sdl-input.h"
#endif

#include "lolgl.h"
#include "eglapp.h"
#if LOL_USE_SDL
# include "platform/sdl/sdlinput.h"
#endif

namespace lol
{


src/platform/sdl/sdlinput.cpp → src/input/sdl-input.cpp Näytä tiedosto

@@ -23,9 +23,8 @@
# include <emscripten/html5.h>
#endif

#include "sdlinput.h"

#include "input/input_internal.h"
#include "input/sdl-input.h"

/* We force joystick polling because no events are received when
* there is no SDL display (eg. on the Raspberry Pi). */

src/platform/sdl/sdlinput.h → src/input/sdl-input.h Näytä tiedosto


+ 12
- 12
src/lol-core.vcxproj Näytä tiedosto

@@ -81,6 +81,9 @@
<ClCompile Include="3rdparty\imgui\imgui_draw.cpp" />
<ClCompile Include="3rdparty\imgui\imgui_widgets.cpp" />
<ClCompile Include="application\application.cpp" />
<ClCompile Include="application\sdl-app.cpp">
<ExcludedFromBuild Condition="'$(enable_sdl)'=='no'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="audio\audio.cpp" />
<ClCompile Include="audio\sample.cpp" />
<ClCompile Include="camera.cpp" />
@@ -148,6 +151,9 @@
<ClCompile Include="image\resource.cpp" />
<ClCompile Include="input\controller.cpp" />
<ClCompile Include="input\input.cpp" />
<ClCompile Include="input\sdl-input.cpp">
<ExcludedFromBuild Condition="'$(enable_sdl)'=='no'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="light.cpp" />
<ClCompile Include="lolimgui.cpp" />
<ClCompile Include="lolua\baselua.cpp" />
@@ -162,12 +168,6 @@
<ClCompile Include="messageservice.cpp" />
<ClCompile Include="platform.cpp" />
<ClCompile Include="platform\d3d9\d3d9input.cpp" />
<ClCompile Include="platform\sdl\sdlapp.cpp">
<ExcludedFromBuild Condition="'$(enable_sdl)'=='no'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="platform\sdl\sdlinput.cpp">
<ExcludedFromBuild Condition="'$(enable_sdl)'=='no'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="profiler.cpp" />
<ClCompile Include="scene.cpp" />
<ClCompile Include="sprite.cpp" />
@@ -182,6 +182,9 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="application\application.h" />
<ClInclude Include="application\sdl-app.h">
<ExcludedFromBuild Condition="'$(enable_sdl)'=='no'">true</ExcludedFromBuild>
</ClInclude>
<ClInclude Include="camera.h" />
<ClInclude Include="commandstack.h" />
<ClInclude Include="debug\fps.h" />
@@ -206,6 +209,9 @@
<ClInclude Include="input\input.h" />
<ClInclude Include="input\input_internal.h" />
<ClInclude Include="input\keys.h" />
<ClInclude Include="input\sdl-input.h">
<ExcludedFromBuild Condition="'$(enable_sdl)'=='no'">true</ExcludedFromBuild>
</ClInclude>
<ClInclude Include="light.h" />
<ClInclude Include="loldebug.h" />
<ClInclude Include="lolgl.h" />
@@ -280,12 +286,6 @@
<ClInclude Include="numeric.h" />
<ClInclude Include="platform.h" />
<ClInclude Include="platform\d3d9\d3d9input.h" />
<ClInclude Include="platform\sdl\sdlapp.h">
<ExcludedFromBuild Condition="'$(enable_sdl)'=='no'">true</ExcludedFromBuild>
</ClInclude>
<ClInclude Include="platform\sdl\sdlinput.h">
<ExcludedFromBuild Condition="'$(enable_sdl)'=='no'">true</ExcludedFromBuild>
</ClInclude>
<ClInclude Include="profiler.h" />
<ClInclude Include="scene.h" />
<ClInclude Include="sprite.h" />


+ 8
- 8
src/lol-core.vcxproj.filter Näytä tiedosto

@@ -120,11 +120,11 @@
<ClCompile Include="debug\stats.cpp">
<Filter>debug</Filter>
</ClCompile>
<ClCompile Include="platform\sdl\sdlapp.cpp">
<Filter>platform\sdl</Filter>
<ClCompile Include="application\sdl-app.cpp">
<Filter>application</Filter>
</ClCompile>
<ClCompile Include="platform\sdl\sdlinput.cpp">
<Filter>platform\sdl</Filter>
<ClCompile Include="input\sdl-input.cpp">
<Filter>input</Filter>
</ClCompile>
<ClCompile Include="math\half.cpp">
<Filter>math</Filter>
@@ -396,11 +396,11 @@
<ClInclude Include="debug\stats.h">
<Filter>debug</Filter>
</ClInclude>
<ClInclude Include="platform\sdl\sdlinput.h">
<Filter>platform\sdl</Filter>
<ClInclude Include="input\sdl-input.h">
<Filter>input</Filter>
</ClInclude>
<ClInclude Include="platform\sdl\sdlapp.h">
<Filter>platform\sdl</Filter>
<ClInclude Include="application\sdl-app.h">
<Filter>application</Filter>
</ClInclude>
<ClInclude Include="lol\algorithm\all.h">
<Filter>lol\algorithm</Filter>


Ladataan…
Peruuta
Tallenna