X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexture3d.h;h=437c852ab92f943ed569de54eb4c61f6b34402bf;hb=HEAD;hp=15d244dec10f116eca42f8c53515e3994720e90a;hpb=cd446554e998204eaba22504b7b28227feb8edbb;p=libs%2Fgl.git diff --git a/source/texture3d.h b/source/texture3d.h deleted file mode 100644 index 15d244de..00000000 --- a/source/texture3d.h +++ /dev/null @@ -1,46 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_TEXTURE3D_H_ -#define MSP_GL_TEXTURE3D_H_ - -#include -#include "datatype.h" -#include "pixelformat.h" -#include "texture.h" - -namespace Msp { -namespace GL { - -class Texture3D: public Texture -{ -private: - PixelFormat ifmt; - unsigned width; - unsigned height; - unsigned depth; - unsigned allocated; - -public: - Texture3D(); - void storage(PixelFormat, unsigned, unsigned, unsigned); - void allocate(unsigned); - void image(unsigned, PixelFormat, DataType, const void *); - void sub_image(unsigned, int, int, int, unsigned, unsigned, unsigned, PixelFormat, DataType, const void *); - void load_image(const std::string &fn, int dp = -1); - unsigned get_width() const { return width; } - unsigned get_height() const { return height; } - unsigned get_depth() const { return depth; } -private: - void require_storage(); - void get_level_size(unsigned, unsigned &, unsigned &, unsigned &); -}; - -} // namespace GL -} // namespace Msp - -#endif