optimize cache_get n shiet

This commit is contained in:
Alessandro Mauri 2023-02-25 00:02:48 +01:00
parent ae8bbc0077
commit 9de467eae9
No known key found for this signature in database
GPG key ID: 2B7BF9531FF03BE8
6 changed files with 20 additions and 30 deletions

View file

@ -26,7 +26,7 @@ int main(void)
return 1;
}
const char *str = "Ciao Mamma!\nprova: òçà°ù§|¬³¼$£ì";
const char *str = "Ciao Mamma!\nprova: òçà°ù§|¬³¼$£ì\t";
SDL_Event e;
while(1) {
@ -38,11 +38,11 @@ int main(void)
case SDL_WINDOWEVENT_RESIZED:
case SDL_WINDOWEVENT_SIZE_CHANGED:
ren_update_viewport(e.window.data1, e.window.data2);
ren_render_text(str, 0, 0, 100, 100, 12);
ren_render_text(str, 0, 0, 200, 100, 12);
SDL_GL_SwapWindow(win);
break;
case SDL_WINDOWEVENT_EXPOSED:
ren_render_text(str, 0, 0, 100, 100, 12);
ren_render_text(str, 0, 0, 200, 100, 12);
SDL_GL_SwapWindow(win);
break;
default: break;