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
28 Base class for textures. This class only defines operations common for all
29 texture types and is not instantiable. For specifying images for textures, see
30 one of the dimensioned texture classes.
38 void parameter(GLenum, int);
39 void parameter(GLenum, float);
40 void set_min_filter(TextureFilter f) { parameter(GL_TEXTURE_MIN_FILTER, f); }
41 void set_mag_filter(TextureFilter f) { parameter(GL_TEXTURE_MAG_FILTER, f); }
42 GLenum get_target() const { return target; }
43 uint get_id() const { return id; }
51 Texture(const Texture &);
52 Texture &operator=(const Texture &);
53 void maybe_bind() const;