tuxanci2-engine
Game engine for tuxanci2
Log | Files | Refs | README | LICENSE

text.h (522B)


      1 #ifndef TA_TEXT_H
      2 #define TA_TEXT_H
      3 
      4 #include <stdint.h>
      5 #include "display.h"
      6 
      7 typedef struct {
      8     const char *text;
      9     uint32_t x, y;
     10     uint8_t size;
     11     uint8_t red, green, blue;
     12     uint8_t border_width;
     13     uint8_t border_red, border_green, border_blue;
     14     uint32_t width, height;
     15     ta_display_sprite *sprite;
     16 } ta_text;
     17 
     18 void ta_text_rasterize(ta_text *text);
     19 void ta_text_draw(ta_text *text);
     20 bool ta_text_change_color(ta_text *text, uint32_t color);
     21 void ta_text_destroy(ta_text *text);
     22 
     23 #endif // TA_TEXT_H