IMeshTexture_DG Interface
- GetTexture
- AttachTexture
- LoadTexture
- LoadTexelArray
- IsTextureMapped
- GetTextureCoordinates
- Copy
- Clear
IMeshTexture_DG manages mapping of mesh vertices to texture coordinates (texels) in the texture image.
IMeshTexture_DG can be obtained using IMesh_DG.GetTexture().
Implements also: IObject_DG.
See also: Texture sample
ITexture_DG GetTexture()
void AttachTexture(ITexture_DG texture)
void LoadTexture(string imageFilePath)
A shortcut for ITexture_DG.Load(); AttachTexture().
void LoadTexelArray(IArrayFloat_DG texCoordinatePairs)
Defines mapping of mesh vertices to texture coordinates (texels) in the texture image. i-th pair in the texCoordinatePairs
will be used as texture coordinates for i-th vertex of the mesh. Each pair consists of two float values.
bool IsTextureMapped()
Returns true if the vertices to texture coordinates mapping is defined using the LoadTexelArray() or is some other way.
void GetTextureCoordinates(int idVertex, out float textureCoordX, out float textureCoordY)
Returns coordinates stored via the LoadTexelArray().
void Copy(IMeshTexture_DG texture)
void Clear()
|