]> git.tdb.fi Git - libs/gl.git/blob - source/texture3d.h
Style update: add spaces around assignment operators
[libs/gl.git] / source / texture3d.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_TEXTURE3D_H_
9 #define MSP_GL_TEXTURE3D_H_
10
11 #include <string>
12 #include "datatype.h"
13 #include "pixelformat.h"
14 #include "texture.h"
15
16 namespace Msp {
17 namespace GL {
18
19 class Texture3D: public Texture
20 {
21 private:
22         PixelFormat ifmt;
23         unsigned width;
24         unsigned height;
25         unsigned depth;
26         int border;
27
28 public:
29         Texture3D();
30         void storage(PixelFormat, unsigned, unsigned, unsigned, int);
31         void image(int, PixelFormat, DataType, const void *);
32         void sub_image(int, int, int, unsigned, unsigned, unsigned, PixelFormat, DataType, const void *);
33         void load_image(const std::string &fn, int dp = -1);
34         unsigned get_width() const { return width; }
35         unsigned get_height() const { return height; }
36         unsigned get_depth() const { return depth; }
37 };
38
39 } // namespace GL
40 } // namespace Msp
41
42 #endif