Advertisement
thecplusplusguy

OpenGL (SDL,C++) - 3d text rendering - text.h

Oct 14th, 2011
1,943
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. /*3d text rendering - text.cpp*/
  2. #ifndef TEXT_H
  3. #define TEXT_H
  4. #include <string>
  5. #include <cstring>
  6. #include <iostream>
  7. #include <SDL/SDL.h>
  8. #include <GL/gl.h>
  9. #include "vector.h"
  10. #include "collisionplane.h"
  11. #include <vector>
  12.  
  13. class text{
  14.     float width,height;
  15.     std::vector<unsigned int> characters;
  16.     public:
  17.     text(float w,float h,std::vector<unsigned int>& ch);
  18.     void drawText(vector3d pos,vector3d rot,const char* tex);
  19. };
  20. #endif
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement