TheoraTextureObject

Places a theora video onto a named texture surface that may be used by
any material.  Allows for the video to play, pause, stop, loop, and for
the source video to be changed at any time.

Based on this resource:
http://www.garagegames.com/community/resources/view/21019
This commit is contained in:
DavidWyand-GG 2013-04-23 11:24:05 -04:00
parent 78242191ec
commit 30144a9f98
3 changed files with 314 additions and 0 deletions

View file

@ -57,9 +57,15 @@ BaseMatInstance* InstancingMaterialHook::getInstancingMat( BaseMatInstance *matI
FeatureSet features( matInst->getRequestedFeatures() );
features.addFeature( MFT_UseInstancing );
// Allow for named texture assignments
Material::sAllowTextureTargetAssignment = true;
if ( !instMat->init( features, matInst->getVertexFormat() ) )
SAFE_DELETE( instMat );
// Turn back off named texture assignments
Material::sAllowTextureTargetAssignment = false;
hook->mMatInst = instMat;
}