Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
imgui_impl_sdlrenderer2.h
1// dear imgui: Renderer Backend for SDL_Renderer for SDL2
2// (Requires: SDL 2.0.17+)
3
4// Note how SDL_Renderer is an _optional_ component of SDL2.
5// For a multi-platform app consider using e.g. SDL+DirectX on Windows and SDL+OpenGL on Linux/OSX.
6// If your application will want to render any non trivial amount of graphics other than UI,
7// please be aware that SDL_Renderer currently offers a limited graphic API to the end-user and
8// it might be difficult to step out of those boundaries.
9
10// Implemented features:
11// [X] Renderer: User texture binding. Use 'SDL_Texture*' as ImTextureID. Read the FAQ about ImTextureID!
12// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices.
13// Missing features:
14// [ ] Renderer: Multi-viewport support (multiple windows).
15
16// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
17// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
18// Learn about Dear ImGui:
19// - FAQ https://dearimgui.com/faq
20// - Getting Started https://dearimgui.com/getting-started
21// - Documentation https://dearimgui.com/docs (same as your local docs/ folder).
22// - Introduction, links and more at the top of imgui.cpp
23
24#pragma once
25#ifndef IMGUI_DISABLE
26#include "imgui.h" // IMGUI_IMPL_API
27
28struct SDL_Renderer;
29
30IMGUI_IMPL_API bool ImGui_ImplSDLRenderer2_Init(SDL_Renderer* renderer);
31IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_Shutdown();
32IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_NewFrame();
33IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_RenderDrawData(ImDrawData* draw_data, SDL_Renderer* renderer);
34
35// Called by Init/NewFrame/Shutdown
36IMGUI_IMPL_API bool ImGui_ImplSDLRenderer2_CreateFontsTexture();
37IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_DestroyFontsTexture();
38IMGUI_IMPL_API bool ImGui_ImplSDLRenderer2_CreateDeviceObjects();
39IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_DestroyDeviceObjects();
40
41#endif // #ifndef IMGUI_DISABLE
Definition imgui.h:3269
Untitled