Rename cmake variables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user