Commit 6040eb8b authored by Eric Bruneton's avatar Eric Bruneton
Browse files

added static method to get GL_MAX_ARRAY_TEXTURE_LAYERS

git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/ork/trunk@16 28599a00-4e59-401b-b2d8-d34d4661a6c9
parent ae07e01f
......@@ -119,6 +119,13 @@ void Texture2DArray::setCompressedSubImage(int level, int x, int y, int l, int w
assert(FrameBuffer::getError() == GL_NO_ERROR);
}
int Texture2DArray::getMaxLayers()
{
GLint l;
glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &l);
return l;
}
void Texture2DArray::swap(ptr<Texture> t)
{
Texture::swap(t);
......
......@@ -105,6 +105,11 @@ public:
*/
void setCompressedSubImage(int level, int x, int y, int l, int w, int h, int d, int s, const Buffer &pixels);
/**
* Returns the maximum number of layers for array textures.
*/
static int getMaxLayers();
protected:
/**
* The width of this texture.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment