]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.h
Add check for more modern AMD video cards
[libs/gl.git] / source / texture3d.h
index 0a03cd5d9e61e1a06d0c41ec3376ca91f4cc0436..93cae7e84e573ff40b0e5685210a9ab6c3ca990c 100644 (file)
@@ -2,8 +2,6 @@
 #define MSP_GL_TEXTURE3D_H_
 
 #include <string>
-#include "datatype.h"
-#include "pixelformat.h"
 #include "texture.h"
 
 namespace Msp {
@@ -32,7 +30,7 @@ public:
        /** Allocates storage for the texture.  The contents are initially
        undefined.  If storage has already been allocated, does nothing. */
        void allocate(unsigned level);
-       
+
        /** Uploads an image to the texture.  Storage must be defined beforehand.
        The image data must have dimensions and format compatible with the defined
        storage. */
@@ -60,6 +58,11 @@ public:
        unsigned get_depth() const { return depth; }
 private:
        void get_level_size(unsigned, unsigned &, unsigned &, unsigned &);
+
+public:
+       virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
+       virtual UInt64 get_data_size() const;
+       virtual void unload() { }
 };
 
 } // namespace GL