overlay_example_loop.c 552 B

1234567891011121314151617181920
  1. #include "overlay_util.h"
  2. static void overlayLoop(void) {
  3. raylib_DrawFPS()(10, 10);
  4. // LOG("FROM OVERLAY: targetFps = %d\n", g_settings->targetFps);
  5. }
  6. void overlayInit(void) {
  7. setOverlayLoop(overlayLoop);
  8. raylib_DrawFPS()(10, 10);
  9. LOG("drawfps called\n");
  10. g_settings->targetFps = 60;
  11. raylib_SetTargetFPS()(g_settings->targetFps);
  12. LOG("OVERLAY: registered myTick, slot=%p\n", (void*) g_overlayLoopSlot);
  13. logDString("OVERLAY: luaExec = ", g_luaExec);
  14. LOG("OVERLAY: targetFps = %d\n", g_settings->targetFps);
  15. }