Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Macros | Functions | Variables
main.cpp File Reference
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include "../../third_party/imgui/imgui.h"
#include "../../third_party/imgui/backends/imgui_impl_sdl3.h"
#include "../../third_party/imgui/backends/imgui_impl_sdlrenderer3.h"
#include "../include/TilemapEditorApp.h"
#include <iostream>
#include <SDL3/SDL_main_impl.h>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Macros

#define SDL_MAIN_USE_CALLBACKS
 

Functions

SDL_AppResult SDL_AppInit (void **appstate, int argc, char *argv[])
 
SDL_AppResult SDL_AppEvent (void *appstate, SDL_Event *event)
 
SDL_AppResult SDL_AppIterate (void *appstate)
 
void SDL_AppQuit (void *appstate, SDL_AppResult result)
 

Variables

static SDL_Windowg_Window = nullptr
 
static SDL_Rendererg_Renderer = nullptr
 
static Olympe::Editor::TilemapEditorAppg_EditorApp = nullptr
 
static Uint64 g_LastFrameTime = 0
 

Macro Definition Documentation

◆ SDL_MAIN_USE_CALLBACKS

#define SDL_MAIN_USE_CALLBACKS

Definition at line 7 of file main.cpp.

Function Documentation

◆ SDL_AppEvent()

SDL_AppResult SDL_AppEvent ( void appstate,
SDL_Event event 
)

◆ SDL_AppInit()

SDL_AppResult SDL_AppInit ( void **  appstate,
int  argc,
char argv[] 
)

Definition at line 24 of file main.cpp.

References g_EditorApp, g_LastFrameTime, g_Renderer, g_Window, GetComponentTypeID_Static(), and Olympe::Editor::TilemapEditorApp::Initialize().

+ Here is the call graph for this function:

◆ SDL_AppIterate()

SDL_AppResult SDL_AppIterate ( void appstate)

Definition at line 185 of file main.cpp.

References g_EditorApp, g_LastFrameTime, g_Renderer, GetComponentTypeID_Static(), and Olympe::Editor::TilemapEditorApp::Render().

+ Here is the call graph for this function:

◆ SDL_AppQuit()

void SDL_AppQuit ( void appstate,
SDL_AppResult  result 
)

Definition at line 223 of file main.cpp.

References g_EditorApp, g_Renderer, g_Window, GetComponentTypeID_Static(), and Olympe::Editor::TilemapEditorApp::Shutdown().

+ Here is the call graph for this function:

Variable Documentation

◆ g_EditorApp

Definition at line 21 of file main.cpp.

Referenced by SDL_AppEvent(), SDL_AppInit(), SDL_AppIterate(), and SDL_AppQuit().

◆ g_LastFrameTime

Uint64 g_LastFrameTime = 0
static

Definition at line 22 of file main.cpp.

Referenced by SDL_AppInit(), and SDL_AppIterate().

◆ g_Renderer

SDL_Renderer* g_Renderer = nullptr
static

Definition at line 20 of file main.cpp.

Referenced by SDL_AppInit(), SDL_AppIterate(), and SDL_AppQuit().

◆ g_Window

SDL_Window* g_Window = nullptr
static

Definition at line 19 of file main.cpp.

Referenced by SDL_AppInit(), and SDL_AppQuit().