Advertisement
Aslai

texture.h

Dec 19th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <GL/gl.h>
  2. #include <GL/glu.h>
  3.  
  4. #include <SDL/SDL.h>
  5. #include <SDL/SDL_image.h>
  6. #include <math.h>
  7.  
  8. struct texture{
  9.     private:
  10.         GLuint texid;
  11.         GLuint wid, hig;
  12.         GLuint flagsa, flagsb;
  13.         void* raw;
  14.     public:
  15.         texture();
  16.         bool load( const char* fname, bool ulctrans = false, bool correct = true );
  17.         bool isvalid();
  18.         void bind();
  19.         void unload();
  20.         void bilinear( bool a );
  21.         ~texture();
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement