Text.h 844 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef INCLUDE_TEXT_H
  2. #define INCLUDE_TEXT_H
  3. #include <string>
  4. namespace WalrusRPG
  5. {
  6. namespace Graphics
  7. {
  8. // TODO?: Rename it for something more related? It was first to draw debug
  9. // content, it's not even really that useful as there is the Font system now.
  10. namespace Text
  11. {
  12. void init();
  13. void deinit();
  14. void print_char(char c, unsigned x, unsigned y);
  15. void print_char(char c, unsigned x, unsigned y);
  16. void print_string(const char *str, unsigned x, unsigned y);
  17. void print_string(const std::string &str, unsigned x, unsigned y);
  18. void print_format(unsigned x, unsigned y, const char *format, ...);
  19. void print_format(unsigned x, unsigned y, const std::string &format, ...);
  20. }
  21. }
  22. }
  23. #endif