3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_TEXTURE_H_
9 #define MSP_GL_TEXTURE_H_
21 NEAREST_MIPMAP_NEAREST = GL_NEAREST_MIPMAP_NEAREST,
22 NEAREST_MIPMAP_LINEAR = GL_NEAREST_MIPMAP_LINEAR,
23 LINEAR_MIPMAP_NEAREST = GL_LINEAR_MIPMAP_NEAREST,
24 LINEAR_MIPMAP_LINEAR = GL_LINEAR_MIPMAP_LINEAR
43 void parameter(GLenum, int);
44 void parameter(GLenum, float);
45 void set_min_filter(TextureFilter f) { parameter(GL_TEXTURE_MIN_FILTER, f); }
46 void set_mag_filter(TextureFilter f) { parameter(GL_TEXTURE_MAG_FILTER, f); }
47 GLenum get_target() const { return target; }
48 uint get_id() const { return id; }
56 Texture(const Texture &);
57 Texture &operator=(const Texture &);
58 void maybe_bind() const;