Class Qkmaxware::Rendering::UV
Class List > Qkmaxware > Rendering > UV
Mapping of vertices to 2D UV coordinates
Inherits the following classes: Qkmaxware::Rendering::IUvMap, IEnumerable< Vec2 >
Public Functions
Type | Name |
---|---|
void | AddMapping (Vec3 key, Vec2 value) Add a mapping between vertex and UV coordinate |
IEnumerator< Vec2 > | GetEnumerator () |
void | RemoveMapping (Vec3 key) Remove a mapping |
UV () Empty UV map |
|
UV (IEnumerable< KeyValuePair< Vec3, Vec2 >> keys) UV map with existing mappings |
Public Static Functions
Type | Name |
---|---|
UV | Spherical (IEnumerable< Triangle > triangles) Create a UV map from a spherical projection |
Public Functions Documentation
function AddMapping
inline void Qkmaxware::Rendering::UV::AddMapping (
Vec3 key,
Vec2 value
)
Parameters:
key
vertexvalue
UV coordinates
function GetEnumerator [1/2]
inline IEnumerator< Vec2 > Qkmaxware::Rendering::UV::GetEnumerator ()
function RemoveMapping
inline void Qkmaxware::Rendering::UV::RemoveMapping (
Vec3 key
)
Parameters:
key
vertex
function UV [1/2]
inline Qkmaxware::Rendering::UV::UV ()
function UV [2/2]
inline Qkmaxware::Rendering::UV::UV (
IEnumerable< KeyValuePair< Vec3, Vec2 >> keys
)
Parameters:
keys
mapping
Public Static Functions Documentation
function Spherical
static inline UV Qkmaxware::Rendering::UV::Spherical (
IEnumerable< Triangle > triangles
)
Parameters:
triangles
geometry to map
Returns:
UV map
The documentation for this class was generated from the following file Render/src/UvMap.cs