You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ugui/text_rendering/main.c

31 lines
499 B

2 years ago
#include <stdlib.h>
#include <stdio.h>
2 years ago
#include "ren.h"
2 years ago
#include "util.h"
2 years ago
int main(void)
{
2 years ago
SDL_Window *win = SDL_CreateWindow(
"test render",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
500,
500,
SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);
if (ren_init(win)) {
printf("renderer init error: %s\n", ren_strerror());
return 1;
2 years ago
}
2 years ago
ren_render_text("ciao mamma", 100, 100, 100, 100, 12);
SDL_GL_SwapWindow(win);
2 years ago
2 years ago
while(1);
2 years ago
2 years ago
ren_free();
SDL_DestroyWindow(win);
2 years ago
return 0;
}