SoSFImage3SetSubValue Method (SbVec3s, SbVec3s, Byte, SoSFImage3CopyPolicies) |
These methods may be used for subtexturing: instead of replacing the entire texture in texture memory, only parts of it are replaced.
Namespace: OIV.Inventor.Fields
public void SetSubValue( SbVec3s subSize, SbVec3s offset, byte[] bytes, SoSFImage3CopyPolicies copy )
This is much faster and uses less memory. In any case these methods affect the texture in system memory. Note that the sub-images must have the same number of components as the one contained in this object. The texture in texture memory will not actually be modified until the next render traversal.