Remove nuklear from engine

This commit is contained in:
2023-11-10 10:13:49 +01:00
parent 3468e6caf4
commit 2f358ef5f7
5 changed files with 29 additions and 48 deletions

View File

@@ -30,7 +30,6 @@ extern struct nk_context *NK;
extern bool bzMain(BzAppDesc *appDesc, int argc, const char **argv);
#ifdef BZ_ENTRYPOINT
#include <raylib-nuklear.h>
#include <flecs.h>
struct nk_context *NK = NULL;
@@ -94,9 +93,6 @@ int main(int argc, const char **argv) {
SetTargetFPS(appDesc.fps);
// Initialize modules
if (appDesc.useNuklear) {
NK = InitNuklear(16);
}
if (appDesc.useFlecs) {
ECS = ecs_init();
}
@@ -108,8 +104,6 @@ int main(int argc, const char **argv) {
while (!WindowShouldClose()) {
float dt = GetFrameTime();
if (NK)
UpdateNuklear(NK);
if (appDesc.update)
appDesc.update(dt, appDesc.userData);
@@ -119,8 +113,6 @@ int main(int argc, const char **argv) {
BeginDrawing();
if (appDesc.render)
appDesc.render(dt, appDesc.userData);
if (NK)
DrawNuklear(NK);
EndDrawing();
}
@@ -133,10 +125,6 @@ int main(int argc, const char **argv) {
ecs_fini(ECS);
ECS = NULL;
}
if (NK) {
UnloadNuklear(NK);
NK = NULL;
}
CloseWindow();
bzLoggerDeinit();