Skip to content

Commit

Permalink
SDL var check (i'm an idiot)
Browse files Browse the repository at this point in the history
  • Loading branch information
catriverr committed Sep 3, 2024
1 parent 082e523 commit a342cee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ int test_vwhole_renderer() {
std::cout << "emplace_lvl_camera done" << '\n';
lvl.display.camera.clear_screen();
std::cout << lvl.display.camera.draw() << '\n';
#if GMENG_SDL
Gmeng::GameWindow window = Gmeng::create_window("PREVIEW", 800, 600);
//window.draw(Gmeng::window_frame(lvl), {0,0});
std::cout << sizeof(lvl.display.camera.display_map.unitmap)/sizeof(Gmeng::Unit) << '\n';
Expand All @@ -325,6 +326,7 @@ int test_vwhole_renderer() {
if (e.type == SDL_QUIT) quit = true;
}
};
#endif
do
{
cout << "Press [enter] to continue...";
Expand Down

0 comments on commit a342cee

Please sign in to comment.