Separate engine and game
This commit is contained in:
4
engine/tests/CMakeLists.txt
Normal file
4
engine/tests/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
project(BreezeTests)
|
||||
|
||||
add_executable(window_test window_test.c)
|
||||
target_link_libraries(window_test LINK_PRIVATE Breeze)
|
||||
14
engine/tests/window_test.c
Normal file
14
engine/tests/window_test.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <breeze.h>
|
||||
|
||||
#include <raylib.h>
|
||||
|
||||
void render(float dt, int *game) {
|
||||
ClearBackground(WHITE);
|
||||
BeginDrawing();
|
||||
EndDrawing();
|
||||
}
|
||||
|
||||
bool bzMain(BzAppDesc *appDesc, int argc, const char **argv) {
|
||||
appDesc->render = (BzAppRenderFunc) render;
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user