ON_3dmObjectAttributes uses ON_MappingChannel to record which texture mapping function to use when applying a texture with a matching mapping channel id. When an object is rendered, if the material has textures and ON_Texture::m_mapping_channel_id = ON_MappingChannel::m_mapping_channel_id, then the mapping with id m_mapping_id is used to map the texture. Otherwise, the mesh m_T[] texture coordinates are used to apply the texture.
More...
#include <opennurbs_mapchan.h>
ON_3dmObjectAttributes uses ON_MappingChannel to record which texture mapping function to use when applying a texture with a matching mapping channel id. When an object is rendered, if the material has textures and ON_Texture::m_mapping_channel_id = ON_MappingChannel::m_mapping_channel_id, then the mapping with id m_mapping_id is used to map the texture. Otherwise, the mesh m_T[] texture coordinates are used to apply the texture.
◆ ON_MappingChannel()
ON_MappingChannel::ON_MappingChannel |
( |
| ) |
|
◆ Compare()
◆ Default()
void ON_MappingChannel::Default |
( |
| ) |
|
◆ Read()
◆ Write()
◆ m_mapping_channel_id
int ON_MappingChannel::m_mapping_channel_id |
◆ m_mapping_id
ON_UUID ON_MappingChannel::m_mapping_id |
◆ m_mapping_index
int ON_MappingChannel::m_mapping_index |
◆ m_object_xform
ON_Xform ON_MappingChannel::m_object_xform |