mirror of
https://github.com/iAmInActions/SpaceCadetPinballPPC.git
synced 2024-11-25 13:40:09 +00:00
e0638c598d
Fixed uniform scaling. Removed splash screen.
18 lines
768 B
C++
18 lines
768 B
C++
#pragma once
|
|
|
|
struct ImDrawData;
|
|
struct SDL_Renderer;
|
|
|
|
namespace ImGuiSDL
|
|
{
|
|
// Call this to initialize the SDL renderer device that is internally used by the renderer.
|
|
void Initialize(SDL_Renderer* renderer, int windowWidth, int windowHeight);
|
|
// Call this before destroying your SDL renderer or ImGui to ensure that proper cleanup is done. This doesn't do anything critically important though,
|
|
// so if you're fine with small memory leaks at the end of your application, you can even omit this.
|
|
void Deinitialize();
|
|
|
|
// Call this every frame after ImGui::Render with ImGui::GetDrawData(). This will use the SDL_Renderer provided to the interfrace with Initialize
|
|
// to draw the contents of the draw data to the screen.
|
|
void Render(ImDrawData* drawData);
|
|
}
|