testbed: app -> application

This commit is contained in:
Michele Caini
2025-03-28 11:28:32 +01:00
parent d84a18e456
commit 8c04222a40
4 changed files with 4 additions and 11 deletions

View File

@@ -48,6 +48,7 @@ target_sources(
PRIVATE
testbed.cpp
app/context.cpp
application/context.cpp
${imgui_SOURCE_DIR}/imgui.cpp
${imgui_SOURCE_DIR}/imgui_demo.cpp
${imgui_SOURCE_DIR}/imgui_draw.cpp

View File

@@ -1,21 +1,13 @@
#include <SDL3/SDL_render.h>
#include <app/context.h>
#include <application/context.h>
#include <backends/imgui_impl_sdl3.h>
#include <backends/imgui_impl_sdlrenderer3.h>
#include <imgui.h>
namespace testbed {
namespace internal {
static constexpr const char *window_default_title = "testbed";
static constexpr int window_default_width = 1280;
static constexpr int window_default_height = 720;
} // namespace internal
context::context()
: sdl_window{SDL_CreateWindow(internal::window_default_title, internal::window_default_width, internal::window_default_height, SDL_WINDOW_HIGH_PIXEL_DENSITY)},
: sdl_window{SDL_CreateWindow("testbed", 1280, 720, SDL_WINDOW_HIGH_PIXEL_DENSITY)},
sdl_renderer{SDL_CreateRenderer(sdl_window, nullptr)} {
SDL_SetRenderVSync(sdl_renderer, SDL_RENDERER_VSYNC_ADAPTIVE);

View File

@@ -1,4 +1,4 @@
#include <app/context.h>
#include <application/context.h>
int main() {
testbed::context ctx{};