Implemented load and subload methods in osg::Texture/Texture2D.

This commit is contained in:
Robert Osfield
2003-03-31 21:41:17 +00:00
parent 11a38e12f2
commit b728b1dd99
6 changed files with 341 additions and 76 deletions

View File

@@ -209,6 +209,9 @@ void TextureCubeMap::apply(State& state) const
{
_subloadCallback->subload(*this,state);
}
else
{
}
}
else if (_subloadCallback.valid())
@@ -238,7 +241,8 @@ void TextureCubeMap::apply(State& state) const
for (int n=0; n<6; n++)
{
applyTexImage2D( faceTarget[n], _images[n].get(), state, _textureWidth, _textureHeight, _numMimpmapLevels);
//applyTexImage2D( faceTarget[n], _images[n].get(), state, _textureWidth, _textureHeight, _numMimpmapLevels);
applyTexImage2D_load( faceTarget[n], _images[n].get(), state, _textureWidth, _textureHeight, _numMimpmapLevels);
}