Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*3d text rendering - text.cpp*/
- #ifndef TEXT_H
- #define TEXT_H
- #include <string>
- #include <cstring>
- #include <iostream>
- #include <SDL/SDL.h>
- #include <GL/gl.h>
- #include "vector.h"
- #include "collisionplane.h"
- #include <vector>
- class text{
- float width,height;
- std::vector<unsigned int> characters;
- public:
- text(float w,float h,std::vector<unsigned int>& ch);
- void drawText(vector3d pos,vector3d rot,const char* tex);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement