mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-08 07:45:46 +00:00
SDL2 in fetchcontent as well
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
|
||||
#if defined(TESSESFRAMEWORK_ENABLE_SDL2)
|
||||
#include <array>
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_ttf.h>
|
||||
#include "SDL_Headers.hpp"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
namespace Tesses::Framework::SDL2
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#if defined(TESSESFRAMEWORK_ENABLE_SDL2)
|
||||
#include <SDL2/SDL.h>
|
||||
#include "SDL_Headers.hpp"
|
||||
#include "FontCache.hpp"
|
||||
#include "../Filesystem/VFSFix.hpp"
|
||||
#include "../Filesystem/VFS.hpp"
|
||||
|
||||
10
include/TessesFramework/SDL2/SDL_Headers.hpp
Normal file
10
include/TessesFramework/SDL2/SDL_Headers.hpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
#define SDL_MAIN_HANDLED
|
||||
#include <SDL2/SDL.h>
|
||||
#if defined(TESSESFRAMEWORK_FETCHCONTENT)
|
||||
#include <SDL_image.h>
|
||||
#include <SDL_ttf.h>
|
||||
#else
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <SDL2/SDL_ttf.h>
|
||||
#endif
|
||||
@@ -37,6 +37,4 @@
|
||||
#include "Platform/Environment.hpp"
|
||||
#include "Platform/Process.hpp"
|
||||
#include "Text/StringConverter.hpp"
|
||||
#include "SDL2/FontCache.hpp"
|
||||
#include "SDL2/Stream.hpp"
|
||||
#include "SDL2/GUI.hpp"
|
||||
#include "SDL2/SDL_Headers.hpp"
|
||||
Reference in New Issue
Block a user