#include <material.h>
◆ Material() [1/2]
tram::Render::Material::Material |
( |
name_t |
name | ) |
|
|
inline |
◆ Material() [2/2]
◆ Find()
◆ GetColor()
vec3 tram::Render::Material::GetColor |
( |
| ) |
const |
|
inline |
◆ GetHeight()
uint32_t tram::Render::Material::GetHeight |
( |
| ) |
const |
|
inline |
◆ GetProperty()
◆ GetSpecularExponent()
float tram::Render::Material::GetSpecularExponent |
( |
| ) |
const |
|
inline |
◆ GetSpecularTransparency()
float tram::Render::Material::GetSpecularTransparency |
( |
| ) |
const |
|
inline |
◆ GetSpecularWeight()
float tram::Render::Material::GetSpecularWeight |
( |
| ) |
const |
|
inline |
◆ GetTexture()
◆ GetType()
◆ GetWidth()
uint32_t tram::Render::Material::GetWidth |
( |
| ) |
const |
|
inline |
◆ LoadFromDisk()
void tram::Render::Material::LoadFromDisk |
( |
| ) |
|
|
virtual |
◆ LoadFromMemory()
void tram::Render::Material::LoadFromMemory |
( |
| ) |
|
|
virtual |
◆ LoadMaterialInfo()
void tram::Render::Material::LoadMaterialInfo |
( |
const char * |
filename | ) |
|
|
static |
◆ Make()
Creates a material.
If a Material already exists with that name, then the existing Material is returned.
- Returns
- Always returns a pointer to a Material.
◆ MakePattern()
void tram::Render::Material::MakePattern |
( |
vec3 |
color1, |
|
|
vec3 |
color2 |
|
) |
| |
Makes Material a pattern.
This method does the same thing as LoadFromDisk(), but instead of loading the texture from disk, it will generate a 64x64 pixel checkerboard pattern, like the one used for errored materials.
◆ SetColor()
void tram::Render::Material::SetColor |
( |
color_t |
color | ) |
|
|
inline |
◆ SetMaterialFilter()
void tram::Render::Material::SetMaterialFilter |
( |
MaterialFilter |
filter | ) |
|
|
inline |
◆ SetMaterialProperty()
◆ SetMaterialType()
◆ SetSource()
void tram::Render::Material::SetSource |
( |
Material * |
source | ) |
|
|
inline |
◆ SetSpecular()
void tram::Render::Material::SetSpecular |
( |
float |
weight, |
|
|
float |
exponent, |
|
|
float |
transparency |
|
) |
| |
|
inline |
◆ SetTextureType()
void tram::Render::Material::SetTextureType |
( |
TextureType |
texture_type | ) |
|
|
inline |
◆ Unload()
void tram::Render::Material::Unload |
( |
| ) |
|
|
inlinevirtual |
◆ Sprite
◆ approx_vram_usage
size_t tram::Render::Material::approx_vram_usage = 0 |
|
protected |
◆ channels
uint8_t tram::Render::Material::channels = 0 |
|
protected |
◆ color
vec3 tram::Render::Material::color = {1.0f, 1.0f, 1.0f} |
|
protected |
◆ filter
◆ height
uint32_t tram::Render::Material::height = 0 |
|
protected |
◆ source
Material* tram::Render::Material::source = nullptr |
|
protected |
◆ specular_exponent
float tram::Render::Material::specular_exponent = 1.0f |
|
protected |
◆ specular_transparency
float tram::Render::Material::specular_transparency = 0.0f |
|
protected |
◆ specular_weight
float tram::Render::Material::specular_weight = 0.0f |
|
protected |
◆ texture
◆ texture_data
uint8_t* tram::Render::Material::texture_data = nullptr |
|
protected |
◆ texture_type
◆ type
◆ width
uint32_t tram::Render::Material::width = 0 |
|
protected |
◆ PROPERTY_METAL
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/render/material.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/render/material.cpp