laughs in french
This commit is contained in:
parent
884d5a1987
commit
a697fec5d1
6 changed files with 97 additions and 35 deletions
|
|
@ -10,6 +10,10 @@
|
|||
|
||||
int main(void)
|
||||
{
|
||||
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS);
|
||||
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
|
||||
SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1");
|
||||
|
||||
SDL_Window *win = SDL_CreateWindow(
|
||||
"test render",
|
||||
SDL_WINDOWPOS_UNDEFINED,
|
||||
|
|
@ -22,8 +26,7 @@ int main(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
ren_render_text("ciao mamma", 0, 0, 100, 100, 12);
|
||||
SDL_GL_SwapWindow(win);
|
||||
const char *str = "Ciao Mamma!\nprova: òçà°ù§|¬³¼$£ì";
|
||||
|
||||
SDL_Event e;
|
||||
while(1) {
|
||||
|
|
@ -35,8 +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);
|
||||
SDL_GL_SwapWindow(win);
|
||||
break;
|
||||
case SDL_WINDOWEVENT_EXPOSED:
|
||||
ren_render_text("ciao mamma", 0, 0, 100, 100, 12);
|
||||
ren_render_text(str, 0, 0, 100, 100, 12);
|
||||
SDL_GL_SwapWindow(win);
|
||||
break;
|
||||
default: break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue