DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


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()