diff options
author | kdx <kikoodx@paranoici.org> | 2022-12-27 13:15:46 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2022-12-27 13:15:46 +0100 |
commit | d40a04d666bd0364c35a1a1abed44728583b3757 (patch) | |
tree | a70ae8e9aadb280285afcd50ad51927700ccc83b | |
parent | afa7e90035c6736ebe5dd3e47774c75c41893516 (diff) | |
download | lzr-d40a04d666bd0364c35a1a1abed44728583b3757.tar.gz |
update demo.c
-rw-r--r-- | demo.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,13 +1,10 @@ #include "lzr.h" -#include <SDL2/SDL_blendmode.h> -#include <SDL2/SDL_scancode.h> #include <dx/log.h> #include <stdbool.h> int main(void) { - LZR_Config cfg = { - 400, 224, 60, 16, "LZR demo", false, SDL_BLENDMODE_MUL}; + LZR_Config cfg = {400, 224, 60, 16, "LZR demo", 0.0, false}; if (LZR_Init(cfg)) return 1; float darkness = 0.0f; @@ -22,6 +19,7 @@ int main(void) darkness = 0.5f * dark_dir; dark_dir = -dark_dir; } + LZR_CycleEvents(); if (LZR_ButtonDown(LZR_BUTTON_LEFT)) { stg.flip_h = true; x--; @@ -41,7 +39,6 @@ int main(void) if (LZR_ButtonDown(LZR_BUTTON_MOUSE_L)) LZR_MousePosition(&x, &y); stg.angle = darkness * 20; - LZR_CycleEvents(); LZR_DrawBegin(); LZR_DrawSetColor(0.9f, 0.9f, 0.8f); LZR_DrawClear(); |