A few patches
This commit is contained in:
+11
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user