Backends: SDLRenderer2, SDLRenderer3: reduce includes. (#9543)
Amend a5b5f2d
This commit is contained in:
parent
a5b5f2d85a
commit
7cb5ded5d2
@ -55,7 +55,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// SDL
|
// SDL
|
||||||
#include <SDL.h>
|
#include <SDL_render.h>
|
||||||
|
#include <SDL_version.h>
|
||||||
#if !SDL_VERSION_ATLEAST(2,0,17)
|
#if !SDL_VERSION_ATLEAST(2,0,17)
|
||||||
#error This backend requires SDL 2.0.17+ because of SDL_RenderGeometry() function
|
#error This backend requires SDL 2.0.17+ because of SDL_RenderGeometry() function
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -51,7 +51,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// SDL
|
// SDL
|
||||||
#include <SDL3/SDL.h>
|
#include <SDL3/SDL_render.h>
|
||||||
|
#include <SDL3/SDL_version.h>
|
||||||
#if !SDL_VERSION_ATLEAST(3,0,0)
|
#if !SDL_VERSION_ATLEAST(3,0,0)
|
||||||
#error This backend requires SDL 3.0.0+
|
#error This backend requires SDL 3.0.0+
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -27,7 +27,8 @@
|
|||||||
#include "imgui.h" // IMGUI_IMPL_API
|
#include "imgui.h" // IMGUI_IMPL_API
|
||||||
#ifndef IMGUI_DISABLE
|
#ifndef IMGUI_DISABLE
|
||||||
|
|
||||||
#include <SDL3/SDL.h>
|
// For SDL_ScaleMode which cannot be forward declared.
|
||||||
|
#include <SDL3/SDL_render.h>
|
||||||
|
|
||||||
// Follow "Getting Started" link and check examples/ folder to learn about using backends!
|
// Follow "Getting Started" link and check examples/ folder to learn about using backends!
|
||||||
IMGUI_IMPL_API bool ImGui_ImplSDLRenderer3_Init(SDL_Renderer* renderer);
|
IMGUI_IMPL_API bool ImGui_ImplSDLRenderer3_Init(SDL_Renderer* renderer);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user