Skip to content

Commit

Permalink
comment everything except InitWindow()
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-edward committed Jan 27, 2025
1 parent 985af58 commit 584db28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/core/interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ namespace box

Interface::Interface()
{
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
// SetConfigFlags(FLAG_WINDOW_RESIZABLE);
InitWindow(512, 512, "raylib - Rescalable 128x128 render");
target_ = LoadRenderTexture(WIDTH, HEIGHT);
SetTargetFPS(60);
SetExitKey(0); // esc doesn't close program
// target_ = LoadRenderTexture(WIDTH, HEIGHT);
// SetTargetFPS(60);
// SetExitKey(0); // esc doesn't close program

if constexpr (INPUT_TYPE == DeviceType::Hardware)
{
// Initialize microcontroller input handling (e.g., serial interface)
}
// if constexpr (INPUT_TYPE == DeviceType::Hardware)
// {
// // Initialize microcontroller input handling (e.g., serial interface)
// }
}

Interface::~Interface()
Expand Down
4 changes: 2 additions & 2 deletions test/fake_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ int main()
box::Interface interface {
};

box::App app(engine, edit);
box::APP = &app;
// box::App app(engine, edit);
// box::APP = &app;

std::cout << "-----------" << std::endl;
std::cout << "begin tests" << std::endl;
Expand Down

0 comments on commit 584db28

Please sign in to comment.