X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.h;h=28f9cb328979efdcefc0c6934e250da56748cdb7;hb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1;hp=55eda001a79ec0b12dc3c1e52628327653733365;hpb=f098a871fc6dc7b61a5aca5581fa327e4124c036;p=libs%2Fgl.git diff --git a/source/texture.h b/source/texture.h index 55eda001..28f9cb32 100644 --- a/source/texture.h +++ b/source/texture.h @@ -8,7 +8,7 @@ Distributed under the LGPL #ifndef MSP_GL_TEXTURE_H_ #define MSP_GL_TEXTURE_H_ -#include +#include "gl.h" #include "types.h" namespace Msp { @@ -24,16 +24,11 @@ enum TextureFilter LINEAR_MIPMAP_LINEAR = GL_LINEAR_MIPMAP_LINEAR }; -enum TextureFormat -{ - LUMINANCE8, - LUMINANCE8_ALPHA8, - RGB8, - RGBA8, - BGR8, - BGRA8 -}; - +/** +Base class for textures. This class only defines operations common for all +texture types and is not instantiable. For specifying images for textures, see +one of the dimensioned texture classes. +*/ class Texture { public: