X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture1d.cpp;h=39782efd8124d357e5bacdb88278309ea578d2b3;hp=bcebca49565131eb738ba471af992cbe0e05c1a9;hb=HEAD;hpb=744dced516f11d072dc6176fdf2df7e464b9782e diff --git a/source/texture1d.cpp b/source/texture1d.cpp deleted file mode 100644 index bcebca49..00000000 --- a/source/texture1d.cpp +++ /dev/null @@ -1,60 +0,0 @@ -#include "bindable.h" -#include "error.h" -#include "texture1d.h" - -using namespace std; - -namespace Msp { -namespace GL { - -Texture1D::Texture1D(): - Texture(GL_TEXTURE_1D), - width(0), - allocated(0) -{ } - -void Texture1D::storage(PixelFormat fmt, unsigned wd) -{ - if(width>0) - throw invalid_operation("Texture1D::storage"); - if(wd==0) - throw invalid_argument("Texture1D::storage"); - require_pixelformat(fmt); - - ifmt = fmt; - width = wd; -} - -void Texture1D::allocate(unsigned level) -{ - if(allocated&(1<>=1, ++level) ; - allocated |= (1<>level; -} - -} // namespace GL -} // namespace Msp