Skip to content

Commit

Permalink
fix sdl includes
Browse files Browse the repository at this point in the history
  • Loading branch information
KaleiAlma committed Jan 24, 2025
1 parent b3a1010 commit cc3724e
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 30 deletions.
3 changes: 1 addition & 2 deletions LuaSTG/Core/Audio/Device_SDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
#include <algorithm>
#include <string>

#include "SDL_audio.h"
#include "SDL_error.h"
#include "SDL.h"
#include "spdlog/spdlog.h"

// because windows headers get included in miniaudio implementation
Expand Down
2 changes: 1 addition & 1 deletion LuaSTG/Core/Audio/Device_SDL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "Core/Audio/Decoder.hpp"
#include "Core/Object.hpp"
#include "Core/Audio/Device.hpp"
#include "SDL_audio.h"
#include "SDL.h"
#include "miniaudio.h"
#include <cstdint>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion LuaSTG/Core/Graphics/Device_OpenGL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "Core/Graphics/Device.hpp"
#include "Core/Type.hpp"
#include "glad/gl.h"
#include <SDL_video.h>
#include "SDL.h"
#include <cstddef>
#include <cstdint>
#include <optional>
Expand Down
2 changes: 1 addition & 1 deletion LuaSTG/Core/Graphics/SwapChain_OpenGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "Core/Type.hpp"
#include "Core/i18n.hpp"
#include "glad/gl.h"
#include "SDL_video.h"
#include "SDL.h"
#include "spdlog/spdlog.h"
#include "stb_image_write.h"

Expand Down
8 changes: 0 additions & 8 deletions LuaSTG/Core/Graphics/Window_SDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
#include "Core/InitializeConfigure.hpp"
#include "Core/Type.hpp"
#include "Core/i18n.hpp"
#include "SDL_clipboard.h"
#include "SDL_events.h"
#include "SDL_hints.h"
#include "SDL_keyboard.h"
#include "SDL_keycode.h"
#include "SDL_rect.h"
#include "SDL_stdinc.h"
#include "SDL_video.h"
#include "glad/gl.h"
#include "uni_algo/ranges_grapheme.h"
#include "uni_algo/ranges_word.h"
Expand Down
5 changes: 1 addition & 4 deletions LuaSTG/Core/Graphics/Window_SDL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
#include "Core/ApplicationModel.hpp"
#include "Core/Graphics/Window.hpp"
#include "Core/Type.hpp"
#include "SDL_events.h"
#include "SDL.h"
// #include "Platform/Monitor.hpp"
// #include "Platform/WindowSizeMoveController.hpp"
// #include "Platform/RuntimeLoader/DesktopWindowManager.hpp"
#include <SDL_rect.h>
#include <SDL_surface.h>
#include <SDL_video.h>
#include <cstdint>
#include <string>

Expand Down
6 changes: 1 addition & 5 deletions LuaSTG/LuaSTG/AppFrameInput.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#include "AppFrame.h"
#include "Core/Type.hpp"
#include "SDL_keyboard.h"
#include "SDL_events.h"
#include "SDL_keycode.h"
#include "SDL_mouse.h"
#include "SDL_video.h"
#include "SDL.h"
#include <cstddef>

// #include "Platform/Keyboard.hpp"
Expand Down
4 changes: 1 addition & 3 deletions LuaSTG/LuaSTG/Debugger/ImGuiExtension.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#include "ImGuiExtension.h"
#include "Core/Graphics/SwapChain_OpenGL.hpp"
#include "Core/Type.hpp"
#include "SDL_events.h"
#include "SDL.h"
// #include "backends/imgui_impl_sdl2.h"
// #include "imgui_impl_opengl3_loader.h"
#include <SDL_video.h>

// #define WIN32_LEAN_AND_MEAN
// #define NOMINMAX
// #include <d3d11.h>
#include "SDL_video.h"
#include "glad/gl.h"
// #include <Xinput.h>

Expand Down
2 changes: 1 addition & 1 deletion LuaSTG/LuaSTG/GameObject/GameObjectPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "LuaBinding/lua_luastg_hash.hpp"
#include "AppFrame.h"

#include "SDL_keycode.h"
#include "SDL.h"

#define LOBJPOOL_SIZE_INTERNAL (LOBJPOOL_SIZE + 1)
#define LOBJPOOL_METATABLE_IDX (LOBJPOOL_SIZE_INTERNAL)
Expand Down
3 changes: 1 addition & 2 deletions LuaSTG/LuaSTG/LuaBinding/LW_Input.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "LuaBinding/LuaWrapper.hpp"
#include "AppFrame.h"
#include "SDL_keycode.h"
#include "SDL_mouse.h"
#include "SDL.h"
// #include "Platform/Keyboard.hpp"
// #include "Platform/Mouse.hpp"

Expand Down
2 changes: 1 addition & 1 deletion LuaSTG/Platform/MessageBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <cstdint>
#include <sys/types.h>
#include "spdlog/spdlog.h"
#include "SDL_messagebox.h"
#include "SDL.h"

namespace Platform
{
Expand Down
2 changes: 1 addition & 1 deletion LuaSTG/Platform/MessageBox.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include <string_view>
#include "SDL_video.h"
#include "SDL.h"

// FUCK MICROSOFT

Expand Down

0 comments on commit cc3724e

Please sign in to comment.