hs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | LICENSE

commit 64c16fa58d1e95982dc0ea60406e11b15383cfa8
parent d3a94f0922d6987abe6f9b6dd0b3dd2cd32c7eb3
Author: Samdal <samdal@protonmail.com>
Date:   Wed,  6 Oct 2021 21:31:13 +0200

fix nuklear

Diffstat:
Mhs_graphics.h | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/hs_graphics.h b/hs_graphics.h @@ -18,10 +18,6 @@ #include <windows.h> #endif -#ifdef HS_NUKLEAR -#include "hs_nuklear.h" -#endif - #ifdef HS_SFD #include "external/sfd/src/sfd.c" #endif @@ -256,6 +252,10 @@ extern hs_vobj hs_vobj_create(const float *vbuff, const uint32_t vbuffsize, extern void hs_vobj_free(hs_vobj vobj); extern void hs_fps_callback_init(const hs_game_data gd, void(*mouse_callback)(GLFWwindow*, double xpos, double ypos)); +#ifdef HS_NUKLEAR +#include "hs_nuklear.h" +#endif + #ifdef HS_IMPL static uint32_t hs_default_missing_tex = 0; @@ -1128,6 +1128,7 @@ hs_aroom_set_tilemap(const hs_aroom aroom, hs_tilemap* tilemap, const uint16_t l for(uint32_t i = 0; i < aroom.width * aroom.height; i++) hs_tilemap_set(tilemap, i, aroom.data[i]); } + hs_tilemap_update_vbo(*tilemap); } void