2002-08-25 03:39:39 +08:00
|
|
|
#include <osg/GLExtensions>
|
|
|
|
#include <osg/Texture3D>
|
|
|
|
#include <osg/State>
|
|
|
|
#include <osg/GLU>
|
|
|
|
#include <osg/Notify>
|
|
|
|
|
2002-08-26 18:24:01 +08:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
using namespace osg;
|
|
|
|
|
|
|
|
Texture3D::Texture3D():
|
|
|
|
_textureWidth(0),
|
|
|
|
_textureHeight(0),
|
|
|
|
_textureDepth(0),
|
|
|
|
_numMimpmapLevels(0)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Texture3D::Texture3D(const Texture3D& text,const CopyOp& copyop):
|
2002-08-28 23:28:11 +08:00
|
|
|
Texture(text,copyop),
|
2002-08-25 03:39:39 +08:00
|
|
|
_image(copyop(text._image.get())),
|
|
|
|
_textureWidth(text._textureWidth),
|
|
|
|
_textureHeight(text._textureHeight),
|
|
|
|
_textureDepth(text._textureDepth),
|
|
|
|
_numMimpmapLevels(text._numMimpmapLevels),
|
|
|
|
_subloadCallback(text._subloadCallback)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Texture3D::~Texture3D()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
int Texture3D::compare(const StateAttribute& sa) const
|
|
|
|
{
|
|
|
|
// check the types are equal and then create the rhs variable
|
|
|
|
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
|
|
|
COMPARE_StateAttribute_Types(Texture3D,sa)
|
|
|
|
|
|
|
|
if (_image!=rhs._image) // smart pointer comparison.
|
|
|
|
{
|
|
|
|
if (_image.valid())
|
|
|
|
{
|
|
|
|
if (rhs._image.valid())
|
|
|
|
{
|
|
|
|
if (_image->getFileName()<rhs._image->getFileName()) return -1;
|
|
|
|
else if (_image->getFileName()>rhs._image->getFileName()) return 1;;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return 1; // valid lhs._image is greater than null.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (rhs._image.valid())
|
|
|
|
{
|
|
|
|
return -1; // valid rhs._image is greater than null.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-08-28 23:28:11 +08:00
|
|
|
int result = compareTexture(rhs);
|
2002-08-25 03:39:39 +08:00
|
|
|
if (result!=0) return result;
|
|
|
|
|
|
|
|
// compare each paramter in turn against the rhs.
|
|
|
|
COMPARE_StateAttribute_Parameter(_textureWidth)
|
|
|
|
COMPARE_StateAttribute_Parameter(_textureHeight)
|
|
|
|
COMPARE_StateAttribute_Parameter(_textureDepth)
|
|
|
|
COMPARE_StateAttribute_Parameter(_subloadCallback)
|
|
|
|
|
|
|
|
return 0; // passed all the above comparison macro's, must be equal.
|
|
|
|
}
|
|
|
|
|
|
|
|
void Texture3D::setImage(Image* image)
|
|
|
|
{
|
|
|
|
// delete old texture objects.
|
2002-09-05 19:42:55 +08:00
|
|
|
dirtyTextureObject();
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
_image = image;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Texture3D::apply(State& state) const
|
|
|
|
{
|
2002-08-26 18:24:01 +08:00
|
|
|
|
2002-08-25 03:39:39 +08:00
|
|
|
// get the contextID (user defined ID of 0 upwards) for the
|
|
|
|
// current OpenGL context.
|
|
|
|
const uint contextID = state.getContextID();
|
2002-09-05 19:42:55 +08:00
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
const Extensions* extensions = getExtensions(contextID,true);
|
2002-09-05 19:42:55 +08:00
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
if (!extensions->isTexture3DSupported())
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
|
|
|
notify(WARN)<<"Warning: Texture3D::apply(..) failed, 3D texturing is not support by OpenGL driver."<<std::endl;
|
|
|
|
return;
|
|
|
|
}
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
// get the globj for the current contextID.
|
|
|
|
GLuint& handle = getTextureObject(contextID);
|
|
|
|
|
|
|
|
if (handle != 0)
|
|
|
|
{
|
|
|
|
|
|
|
|
glBindTexture( GL_TEXTURE_3D, handle );
|
2002-11-12 00:11:48 +08:00
|
|
|
if (getTextureParameterDirty(state.getContextID())) applyTexParameters(GL_TEXTURE_3D,state);
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
if (_subloadCallback.valid())
|
|
|
|
{
|
|
|
|
_subloadCallback->subload(*this,state);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (_subloadCallback.valid())
|
|
|
|
{
|
|
|
|
|
|
|
|
glGenTextures( 1L, (GLuint *)&handle );
|
|
|
|
glBindTexture( GL_TEXTURE_3D, handle );
|
|
|
|
|
|
|
|
applyTexParameters(GL_TEXTURE_3D,state);
|
|
|
|
|
|
|
|
_subloadCallback->load(*this,state);
|
|
|
|
|
|
|
|
// in theory the following line is redundent, but in practice
|
|
|
|
// have found that the first frame drawn doesn't apply the textures
|
|
|
|
// unless a second bind is called?!!
|
|
|
|
// perhaps it is the first glBind which is not required...
|
|
|
|
glBindTexture( GL_TEXTURE_3D, handle );
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (_image.valid() && _image->data())
|
|
|
|
{
|
|
|
|
|
|
|
|
glGenTextures( 1L, (GLuint *)&handle );
|
|
|
|
glBindTexture( GL_TEXTURE_3D, handle );
|
|
|
|
|
|
|
|
applyTexParameters(GL_TEXTURE_3D,state);
|
|
|
|
|
|
|
|
applyTexImage3D(GL_TEXTURE_3D,_image.get(),state, _textureWidth, _textureHeight, _textureDepth,_numMimpmapLevels);
|
|
|
|
|
|
|
|
// in theory the following line is redundent, but in practice
|
|
|
|
// have found that the first frame drawn doesn't apply the textures
|
|
|
|
// unless a second bind is called?!!
|
|
|
|
// perhaps it is the first glBind which is not required...
|
|
|
|
glBindTexture( GL_TEXTURE_3D, handle );
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
glBindTexture( GL_TEXTURE_3D, 0 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void Texture3D::computeInternalFormat() const
|
|
|
|
{
|
|
|
|
if (_image.valid()) computeInternalFormatWithImage(*_image);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Texture3D::applyTexImage3D(GLenum target, Image* image, State& state, GLsizei& inwidth, GLsizei& inheight, GLsizei& indepth, GLsizei& numMimpmapLevels) const
|
|
|
|
{
|
|
|
|
// if we don't have a valid image we can't create a texture!
|
|
|
|
if (!image || !image->data())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// get the contextID (user defined ID of 0 upwards) for the
|
|
|
|
// current OpenGL context.
|
|
|
|
const uint contextID = state.getContextID();
|
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
const Extensions* extensions = getExtensions(contextID,true);
|
2002-09-05 19:42:55 +08:00
|
|
|
|
|
|
|
|
2002-08-25 03:39:39 +08:00
|
|
|
// update the modified tag to show that it is upto date.
|
|
|
|
getModifiedTag(contextID) = image->getModifiedTag();
|
|
|
|
|
|
|
|
|
|
|
|
// compute the internal texture format, this set the _internalFormat to an appropriate value.
|
|
|
|
computeInternalFormat();
|
|
|
|
|
|
|
|
// select the internalFormat required for the texture.
|
|
|
|
bool compressed = isCompressedInternalFormat(_internalFormat);
|
|
|
|
if (compressed)
|
|
|
|
{
|
|
|
|
notify(WARN)<<"Warning::cannot currently use compressed format with 3D textures."<<std::endl;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2002-09-17 04:58:05 +08:00
|
|
|
image->ensureValidSizeForTexturing(extensions->maxTexture3DSize());
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
glPixelStorei(GL_UNPACK_ALIGNMENT,image->getPacking());
|
|
|
|
|
|
|
|
if( _min_filter == LINEAR || _min_filter == NEAREST )
|
|
|
|
{
|
|
|
|
numMimpmapLevels = 1;
|
2002-09-05 19:42:55 +08:00
|
|
|
extensions->glTexImage3D( target, 0, _internalFormat,
|
|
|
|
image->s(), image->t(), image->r(), 0,
|
|
|
|
(GLenum)image->getPixelFormat(),
|
|
|
|
(GLenum)image->getDataType(),
|
|
|
|
image->data() );
|
2002-08-25 03:39:39 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if(!image->isMipmap())
|
|
|
|
{
|
|
|
|
|
|
|
|
numMimpmapLevels = 1;
|
|
|
|
|
2002-09-05 19:42:55 +08:00
|
|
|
extensions->gluBuild3DMipmaps( target, _internalFormat,
|
|
|
|
image->s(),image->t(),image->r(),
|
|
|
|
(GLenum)image->getPixelFormat(), (GLenum)image->getDataType(),
|
|
|
|
image->data() );
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
numMimpmapLevels = image->getNumMipmapLevels();
|
|
|
|
|
|
|
|
int width = image->s();
|
|
|
|
int height = image->t();
|
|
|
|
int depth = image->r();
|
|
|
|
|
|
|
|
for( GLsizei k = 0 ; k < numMimpmapLevels && (width || height || depth) ;k++)
|
|
|
|
{
|
|
|
|
|
|
|
|
if (width == 0)
|
|
|
|
width = 1;
|
|
|
|
if (height == 0)
|
|
|
|
height = 1;
|
|
|
|
if (depth == 0)
|
|
|
|
depth = 1;
|
|
|
|
|
2002-09-05 19:42:55 +08:00
|
|
|
extensions->glTexImage3D( target, k, _internalFormat,
|
|
|
|
width, height, depth, 0,
|
|
|
|
(GLenum)image->getPixelFormat(),
|
|
|
|
(GLenum)image->getDataType(),
|
|
|
|
image->getMipmapData(k));
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
width >>= 1;
|
|
|
|
height >>= 1;
|
|
|
|
depth >>= 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
inwidth = image->s();
|
|
|
|
inheight = image->t();
|
|
|
|
indepth = image->r();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Texture3D::copyTexSubImage3D(State& state, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height )
|
|
|
|
{
|
|
|
|
const uint contextID = state.getContextID();
|
|
|
|
|
|
|
|
// get the globj for the current contextID.
|
|
|
|
GLuint& handle = getTextureObject(contextID);
|
2002-09-05 23:45:10 +08:00
|
|
|
const Extensions* extensions = getExtensions(contextID,true);
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
if (handle)
|
|
|
|
{
|
|
|
|
|
|
|
|
// we have a valid image
|
|
|
|
glBindTexture( GL_TEXTURE_3D, handle );
|
|
|
|
applyTexParameters(GL_TEXTURE_3D,state);
|
2002-09-05 19:42:55 +08:00
|
|
|
extensions->glCopyTexSubImage3D( GL_TEXTURE_3D, 0, xoffset,yoffset,zoffset, x, y, width, height);
|
2002-08-25 03:39:39 +08:00
|
|
|
|
|
|
|
/* Redundant, delete later */
|
|
|
|
glBindTexture( GL_TEXTURE_3D, handle );
|
|
|
|
|
|
|
|
// inform state that this texture is the current one bound.
|
|
|
|
state.haveAppliedAttribute(this);
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
notify(WARN)<<"Warning: Texture3D::copyTexSubImage3D(..) failed, cannot not copy to a non existant texture."<<std::endl;
|
|
|
|
}
|
|
|
|
}
|
2002-09-05 19:42:55 +08:00
|
|
|
|
2002-09-14 18:38:28 +08:00
|
|
|
typedef buffered_value< ref_ptr<Texture3D::Extensions> > BufferedExtensions;
|
|
|
|
static BufferedExtensions s_extensions;
|
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
const Texture3D::Extensions* Texture3D::getExtensions(uint contextID,bool createIfNotInitalized)
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-05 23:45:10 +08:00
|
|
|
if (!s_extensions[contextID] && createIfNotInitalized) s_extensions[contextID] = new Extensions;
|
2002-09-05 19:42:55 +08:00
|
|
|
return s_extensions[contextID].get();
|
|
|
|
}
|
|
|
|
|
2002-09-14 18:38:28 +08:00
|
|
|
void Texture3D::setExtensions(uint contextID,Extensions* extensions)
|
|
|
|
{
|
|
|
|
s_extensions[contextID] = extensions;
|
|
|
|
}
|
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
#ifndef GL_MAX_3D_TEXTURE_SIZE
|
|
|
|
#define GL_MAX_3D_TEXTURE_SIZE 0x8073
|
|
|
|
#endif
|
|
|
|
|
2002-09-05 19:42:55 +08:00
|
|
|
Texture3D::Extensions::Extensions()
|
2002-09-14 18:38:28 +08:00
|
|
|
{
|
|
|
|
setupGLExtenions();
|
|
|
|
}
|
|
|
|
|
|
|
|
Texture3D::Extensions::Extensions(const Extensions& rhs):
|
|
|
|
Referenced()
|
|
|
|
{
|
|
|
|
_isTexture3DSupported = rhs._isTexture3DSupported;
|
|
|
|
_isTexture3DFast = rhs._isTexture3DFast;
|
|
|
|
_maxTexture3DSize = rhs._maxTexture3DSize;
|
|
|
|
|
|
|
|
_glTexImage3D = rhs._glTexImage3D;
|
|
|
|
_glTexSubImage3D = rhs._glTexSubImage3D;
|
|
|
|
_glCopyTexSubImage3D = rhs._glCopyTexSubImage3D;
|
|
|
|
_gluBuild3DMipmaps = rhs._gluBuild3DMipmaps;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Texture3D::Extensions::lowestCommonDenominator(const Extensions& rhs)
|
|
|
|
{
|
|
|
|
if (!rhs._isTexture3DSupported) _isTexture3DSupported = false;
|
|
|
|
if (!rhs._isTexture3DFast) _isTexture3DFast = false;
|
|
|
|
if (rhs._maxTexture3DSize<_maxTexture3DSize) _maxTexture3DSize = rhs._maxTexture3DSize;
|
|
|
|
|
|
|
|
if (!rhs._glTexImage3D) _glTexImage3D = 0;
|
|
|
|
if (!rhs._glTexSubImage3D) _glTexSubImage3D = 0;
|
|
|
|
if (!rhs._glCopyTexSubImage3D) _glCopyTexSubImage3D = 0;
|
|
|
|
if (!rhs._gluBuild3DMipmaps) _gluBuild3DMipmaps = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Texture3D::Extensions::setupGLExtenions()
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-05 23:45:10 +08:00
|
|
|
_isTexture3DFast = isGLExtensionSupported("GL_EXT_texture3D");
|
2002-09-05 19:42:55 +08:00
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
if (_isTexture3DFast) _isTexture3DSupported = true;
|
|
|
|
else _isTexture3DSupported = strncmp((const char*)glGetString(GL_VERSION),"1.2",3)>=0;
|
2002-09-05 19:42:55 +08:00
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &_maxTexture3DSize);
|
|
|
|
|
|
|
|
_glTexImage3D = getGLExtensionFuncPtr("glTexImage3D","glTexImage3DEXT");;
|
|
|
|
_glTexSubImage3D = getGLExtensionFuncPtr("glTexSubImage3D","glTexSubImage3DEXT");
|
|
|
|
_glCopyTexSubImage3D = getGLExtensionFuncPtr("glCopyTexSubImage3D","glCopyTexSubImage3DEXT");
|
2002-09-28 03:04:46 +08:00
|
|
|
_gluBuild3DMipmaps = getGLExtensionFuncPtr("gluBuild3DMipmaps");
|
2002-09-05 23:45:10 +08:00
|
|
|
|
2002-09-05 19:42:55 +08:00
|
|
|
}
|
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
void Texture3D::Extensions::glTexImage3D( GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels) const
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-28 03:04:46 +08:00
|
|
|
// ::glTexImage3D( target, level, internalFormat, width, height, depth, border, format, type, pixels);
|
2002-09-05 23:45:10 +08:00
|
|
|
if (_glTexImage3D)
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-05 23:45:10 +08:00
|
|
|
typedef void (APIENTRY * GLTexImage3DProc) ( GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
2002-09-20 22:51:59 +08:00
|
|
|
((GLTexImage3DProc)_glTexImage3D)( target, level, internalFormat, width, height, depth, border, format, type, pixels);
|
2002-09-05 19:42:55 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
notify(WARN)<<"Error: glTexImage3D not supported by OpenGL driver"<<std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
void Texture3D::Extensions::glTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels) const
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-28 03:04:46 +08:00
|
|
|
// ::glTexSubImage3D( target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
|
2002-09-05 23:45:10 +08:00
|
|
|
if (_glTexSubImage3D)
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-05 23:45:10 +08:00
|
|
|
typedef void (APIENTRY * GLTexSubImage3DProc) ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
|
2002-09-20 22:51:59 +08:00
|
|
|
((GLTexSubImage3DProc)_glTexSubImage3D)( target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
|
2002-09-05 19:42:55 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
notify(WARN)<<"Error: glTexSubImage3D not supported by OpenGL driver"<<std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
void Texture3D::Extensions::glCopyTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height ) const
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-28 03:04:46 +08:00
|
|
|
// ::glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
2002-09-05 23:45:10 +08:00
|
|
|
if (_glCopyTexSubImage3D)
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-05 23:45:10 +08:00
|
|
|
typedef void (APIENTRY * GLCopyTexSubImageProc) ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height );
|
2002-09-20 22:51:59 +08:00
|
|
|
((GLCopyTexSubImageProc)_glCopyTexSubImage3D)(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
2002-09-05 19:42:55 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
notify(WARN)<<"Error: glCopyTexSubImage3D not supported by OpenGL driver"<<std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-09-05 23:45:10 +08:00
|
|
|
void Texture3D::Extensions::gluBuild3DMipmaps( GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *data) const
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-28 03:04:46 +08:00
|
|
|
// ::gluBuild3DMipmaps(target, internalFormat, width, height, depth, format, type, data);
|
2002-09-05 23:45:10 +08:00
|
|
|
if (_gluBuild3DMipmaps)
|
2002-09-05 19:42:55 +08:00
|
|
|
{
|
2002-09-05 23:45:10 +08:00
|
|
|
typedef void (APIENTRY * GLUBuild3DMipMapsProc) ( GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *data);
|
2002-09-20 22:51:59 +08:00
|
|
|
((GLUBuild3DMipMapsProc)_gluBuild3DMipmaps)(target, internalFormat, width, height, depth, format, type, data);
|
2002-09-05 19:42:55 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
notify(WARN)<<"Error: gluBuild3DMipmaps not supported by OpenGL driver"<<std::endl;
|
|
|
|
}
|
|
|
|
}
|