EgtGraphics 1.9c3 :
- possibilità di impostare dimensione texture da ogni oggetto geometrico (IUserObj).
This commit is contained in:
@@ -560,6 +560,9 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE) ;
|
||||
glBindTexture( GL_TEXTURE_2D, texName) ;
|
||||
}
|
||||
// se esiste parte custom, eventuale recupero dimensioni aggiornate
|
||||
if ( pUserObj != nullptr)
|
||||
pUserObj->GetDimensions( dTextDimS, dTextDimT) ;
|
||||
// recupero il riferimento della texture
|
||||
Frame3d frTxr ;
|
||||
iIter.GetTextureFrame( frTxr) ;
|
||||
|
||||
Reference in New Issue
Block a user