]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/texture3d_backend.h
Add support for padding in vertex formats
[libs/gl.git] / source / backends / opengl / texture3d_backend.h
1 #ifndef MSP_GL_TEXTURE3D_BACKEND_H_
2 #define MSP_GL_TEXTURE3D_BACKEND_H_
3
4 #include "texture.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class OpenGLTexture3D: public Texture
10 {
11 protected:
12         OpenGLTexture3D();
13         OpenGLTexture3D(unsigned);
14
15         void allocate();
16         void sub_image(unsigned, int, int, int, unsigned, unsigned, unsigned, const void *);
17
18         bool is_array() const;
19
20 public:
21         virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
22         virtual std::size_t get_data_size() const;
23         virtual void unload() { }
24 };
25
26 using Texture3DBackend = OpenGLTexture3D;
27
28 } // namespace GL
29 } // namespace Msp
30
31 #endif