Util.h 312 B

12345678910111213141516
  1. #pragma once
  2. #include <string>
  3. #include <GL/freeglut.h>
  4. class Util
  5. {
  6. private:
  7. Util();
  8. ~Util();
  9. public:
  10. static GLuint loadTexture(const std::string &filename);
  11. static void glutBitmapString(std::string str, int x, int y);
  12. static int glutTextWidth(const std::string str);
  13. //static int glutTextHeight();
  14. };