NGen

Untitled

Aug 3rd, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1.  
  2. #ifndef _TEXTURE_H_
  3. #define _TEXTURE_H_
  4.  
  5. #include <Windows.h>
  6. #include <gl\GL.h>
  7. #include <SDL\SDL_image.h>
  8. #include <string>
  9.  
  10. class CTexture
  11. {
  12.     SDL_Surface * mypImage;
  13.     GLuint myTexture;
  14. public:
  15.             CTexture ();
  16.             ~CTexture ();
  17.  
  18.     void    LoadFromFile (std::string file);
  19.     void    Lock ();
  20.     void    Unlock ();
  21.     void    Bind ();
  22.  
  23.     GLuint  GetTexID ();
  24. };
  25.  
  26. #endif
Advertisement
Add Comment
Please, Sign In to add comment