Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _TEXTURE_H_
- #define _TEXTURE_H_
- #include <Windows.h>
- #include <gl\GL.h>
- #include <SDL\SDL_image.h>
- #include <string>
- class CTexture
- {
- SDL_Surface * mypImage;
- GLuint myTexture;
- public:
- CTexture ();
- ~CTexture ();
- void LoadFromFile (std::string file);
- void Lock ();
- void Unlock ();
- void Bind ();
- GLuint GetTexID ();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment