Rename cmake variables

This commit is contained in:
2023-11-07 17:08:36 +01:00
parent 20034c96e6
commit d90e6f1d03
3 changed files with 32 additions and 22 deletions

View File

@@ -12,6 +12,7 @@ typedef struct BzAppDesc {
int32_t width;
int32_t height;
const char *title;
int32_t fps;
BzAppInitFunc init;
BzAppUpdateFunc update;
@@ -24,8 +25,6 @@ typedef struct BzAppDesc {
extern bool bzMain(BzAppDesc *appDesc, int argc, const char **argv);
#ifdef BZ_GAME_ENTRYPOINT
#include <raylib.h>
@@ -38,7 +37,8 @@ int main(int argc, const char **argv) {
BzAppDesc appDesc = {
1280,
720,
"Breeze Engine"
"Breeze Engine",
60
};
bool successful = bzMain(&appDesc, argc, argv);
@@ -51,6 +51,8 @@ int main(int argc, const char **argv) {
}
bzLogInfo("[Breeze] User initialization (bzMain) successful.");
InitWindow(appDesc.width, appDesc.height, appDesc.title);
SetTargetFPS(appDesc.fps);
// Initialize modules
// User initialize