A few patches

This commit is contained in:
2023-01-20 22:51:21 +01:00
parent 8d62c17715
commit 2d62bfc599
5 changed files with 40 additions and 10 deletions
+11
View File
@@ -1,6 +1,17 @@
#include "renderer.h"
#include "text.h"
int main(void) {
renderer_main();
RenderObject_t text;
SDL_Color white = {128, 128, 128, 128};
TTF_Init();
if(text_renderText(&text, 0.f, 0.f, 1, white, "/home/gryf/.local/share/fonts/ARIAL.TTF", 25, "Hello World") < 0){
printf("error");
exit(1);
}
renderer_renderObject(text);
while(1);
text_freeFontCache();
}