mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-06 22:15:07 +00:00
Create examples_sdl3_sdlrenderer3_cb for example using new SDL3 main callbacks.
This commit is contained in:
parent
4e9cc88271
commit
e91de6a688
1 changed files with 1 additions and 18 deletions
|
@ -18,24 +18,7 @@
|
|||
#include <SDL3/SDL.h>
|
||||
#include <SDL3/SDL_main.h>
|
||||
|
||||
// Main code
|
||||
#if 0
|
||||
int main(int, char**)
|
||||
{
|
||||
|
||||
// Cleanup
|
||||
ImGui_ImplSDLRenderer3_Shutdown();
|
||||
ImGui_ImplSDL3_Shutdown();
|
||||
ImGui::DestroyContext();
|
||||
|
||||
SDL_DestroyRenderer(renderer);
|
||||
SDL_DestroyWindow(window);
|
||||
SDL_Quit();
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Struct for our common data
|
||||
struct app_data
|
||||
{
|
||||
SDL_Window* window;
|
||||
|
|
Loading…
Add table
Reference in a new issue