]> git.tdb.fi Git - libs/gl.git/blob - source/texture2d.h
Add Id tags and copyright notices to files
[libs/gl.git] / source / texture2d.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_TEXTURE2D_H_
9 #define MSP_GL_TEXTURE2D_H_
10
11 #include <string>
12 #include "texture.h"
13
14 namespace Msp {
15 namespace GL {
16
17 class Texture2D: public Texture
18 {
19 public:
20         Texture2D();
21         void image(int, int, sizei, sizei, int, GLenum, GLenum, void *);
22         void image(int, sizei, sizei, TextureFormat, void *);
23         void image(const std::string &);
24         sizei get_width() const  { return width_; }
25         sizei get_height() const { return height_; }
26 private:
27         sizei width_;
28         sizei height_;
29 };
30
31 } // namespace GL
32 } // namespace Msp
33
34 #endif