Advertisement
TerusTheBird

masker: sdl_text.h

Jan 7th, 2025
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.02 KB | Source Code | 0 0
  1. #ifndef __SDL_Surfaceext_h
  2. #define __SDL_Surfaceext_h
  3.  
  4. #include "sdl_gen.h"
  5.  
  6. void text_print_char( int x, int y, int c, color_t color, SDL_Surface* t );
  7. void text_print_str(  int x, int y, char* str, color_t color, SDL_Surface* t );
  8.  
  9. void text_print_int( int x, int y, int n, color_t color, SDL_Surface* t );
  10. void text_print_int_with_info( int x, int y, int n, char* prefix, color_t color, SDL_Surface* t );
  11. void text_print_str_double( int x, int y, char* s1, char* s2, color_t color, SDL_Surface* t );
  12.  
  13.  
  14. int text_len_get( char* str, int* w, int* h );
  15.  
  16. void text_print_two_items_float( int x, int y, char* p1, float n1, char* p2, float n2, color_t color, SDL_Surface* t );
  17.  
  18. void text_print__str_float_float( int x, int y, char* str, float f1, float f2, color_t color, SDL_Surface* t );
  19. void text_print__str_u32_u32( int x, int y, char* str, u32 n1, u32 n2, color_t color, SDL_Surface* t );
  20.  
  21. void text_print__str_int_str_int( int x, int y, char* s1, int i1, char* s2, int i2, color_t color, SDL_Surface* surf );
  22.  
  23. #endif
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement