WSM API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
WSM::MaterialData Struct Reference

Description

Data used to construct a material.

#include <GeometryDataContainers.h>

Public Attributes

std::string m_name
 The name of the material.
 
WSM::Color m_color = {255, 255, 255, 255}
 The material color, in RGBA format, with R being the high byte.
 
double m_dHorzScale = 1.0
 The scale applied to the texture data.
 
double m_dVertScale = 1.0
 
size_t m_nTextureIndex = UNUSED_INDEX
 An index into the texture data array.
 

Member Data Documentation

◆ m_color

WSM::Color WSM::MaterialData::m_color = {255, 255, 255, 255}

The material color, in RGBA format, with R being the high byte.

The default color of a material is white, which corresponds to a material with no color change from the texture itself when used with a texture.

◆ m_dHorzScale

double WSM::MaterialData::m_dHorzScale = 1.0

The scale applied to the texture data.

◆ m_dVertScale

double WSM::MaterialData::m_dVertScale = 1.0

◆ m_name

std::string WSM::MaterialData::m_name

The name of the material.

◆ m_nTextureIndex

size_t WSM::MaterialData::m_nTextureIndex = UNUSED_INDEX

An index into the texture data array.


The documentation for this struct was generated from the following file: