FontRenderer.h 417 B

123456789101112131415161718
  1. #ifndef FONT_RENDERER_H
  2. #define FONT_RENDERER_H
  3. #include "math/Matrix.h"
  4. #include "utils/Color.h"
  5. namespace FontRenderer {
  6. bool init();
  7. void bind();
  8. void setProjection(const Matrix& m);
  9. void setView(const Matrix& m);
  10. void setModel(const Matrix& m);
  11. void draw(const char* text, int alpha);
  12. void draw(const Vector2& size, Color4 c);
  13. float getWidth(const char* text, int max);
  14. }
  15. #endif