X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexturecube.cpp;h=cd18c10d6909a2c459c4b2409789069900a67b88;hb=refs%2Fheads%2Fmaster;hp=4a613a37fc948ffa61789a65d912e8b46685001a;hpb=70153a4e27eeebc7e0a91de122f45eff6296cb71;p=libs%2Fgl.git diff --git a/source/texturecube.cpp b/source/texturecube.cpp deleted file mode 100644 index 4a613a37..00000000 --- a/source/texturecube.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include "bindable.h" -#include "error.h" -#include "extension.h" -#include "texturecube.h" - -using namespace std; - -namespace { - -// An array to facilitate looping through the cube faces -Msp::GL::TextureCubeFace faces[6] = -{ - Msp::GL::POSITIVE_X, - Msp::GL::NEGATIVE_X, - Msp::GL::POSITIVE_Y, - Msp::GL::NEGATIVE_Y, - Msp::GL::POSITIVE_Z, - Msp::GL::NEGATIVE_Z -}; - -} - - -namespace Msp { -namespace GL { - -TextureCube::TextureCube(): - Texture(GL_TEXTURE_CUBE_MAP), - size(0), - allocated(0) -{ - static RequireVersion _ver(1, 3); -} - -void TextureCube::storage(PixelFormat fmt, unsigned sz) -{ - if(size>0) - throw invalid_operation("TextureCube::storage"); - if(sz==0) - throw invalid_argument("TextureCube::storage"); - - ifmt = fmt; - size = sz; -} - -void TextureCube::allocate(unsigned level) -{ - if(allocated&(1<>=1, ++level) ; - allocated |= (1<>level; -} - -} // namespace GL -} // namespace Msp