Loading...
Searching...
No Matches
hellfire::Material::Property Struct Reference

#include <Material.h>

Collaboration diagram for hellfire::Material::Property:

Public Member Functions

 Property ()
 
 Property (const std::string &name, float value, const std::string &uniform="")
 
 Property (const std::string &name, const glm::vec2 &value, const std::string &uniform="")
 
 Property (const std::string &name, const glm::vec3 &value, const std::string &uniform="")
 
 Property (const std::string &name, const glm::vec3 &value, PropertyType type, const std::string &uniform="")
 
 Property (const std::string &name, const glm::vec4 &value, PropertyType type, const std::string &uniform="")
 
 Property (const std::string &name, const glm::vec4 &value, const std::string &uniform="")
 
 Property (const std::string &name, Texture *value, const std::string &uniform="")
 
 Property (const std::string &name, bool value, const std::string &uniform="")
 
 Property (const std::string &name, int value, const std::string &uniform="")
 
 Property (const std::string &name, const glm::mat3 &value, const std::string &uniform="")
 
 Property (const std::string &name, const glm::mat4 &value, const std::string &uniform="")
 

Public Attributes

PropertyType type
 
std::string name
 
std::variant< float, glm::vec2, glm::vec3, glm::vec4, Texture *, bool, int, glm::mat3, glm::mat4 > value
 
std::string uniform_name
 

Detailed Description

Definition at line 27 of file Material.h.

Constructor & Destructor Documentation

◆ Property() [1/12]

hellfire::Material::Property::Property ( )
inline

Definition at line 34 of file Material.h.

◆ Property() [2/12]

hellfire::Material::Property::Property ( const std::string &  name,
float  value,
const std::string &  uniform = "" 
)
inline

Definition at line 37 of file Material.h.

◆ Property() [3/12]

hellfire::Material::Property::Property ( const std::string &  name,
const glm::vec2 &  value,
const std::string &  uniform = "" 
)
inline

Definition at line 41 of file Material.h.

◆ Property() [4/12]

hellfire::Material::Property::Property ( const std::string &  name,
const glm::vec3 &  value,
const std::string &  uniform = "" 
)
inline

Definition at line 46 of file Material.h.

◆ Property() [5/12]

hellfire::Material::Property::Property ( const std::string &  name,
const glm::vec3 &  value,
PropertyType  type,
const std::string &  uniform = "" 
)
inline

Definition at line 51 of file Material.h.

◆ Property() [6/12]

hellfire::Material::Property::Property ( const std::string &  name,
const glm::vec4 &  value,
PropertyType  type,
const std::string &  uniform = "" 
)
inline

Definition at line 57 of file Material.h.

◆ Property() [7/12]

hellfire::Material::Property::Property ( const std::string &  name,
const glm::vec4 &  value,
const std::string &  uniform = "" 
)
inline

Definition at line 63 of file Material.h.

◆ Property() [8/12]

hellfire::Material::Property::Property ( const std::string &  name,
Texture value,
const std::string &  uniform = "" 
)
inline

Definition at line 67 of file Material.h.

◆ Property() [9/12]

hellfire::Material::Property::Property ( const std::string &  name,
bool  value,
const std::string &  uniform = "" 
)
inline

Definition at line 71 of file Material.h.

◆ Property() [10/12]

hellfire::Material::Property::Property ( const std::string &  name,
int  value,
const std::string &  uniform = "" 
)
inline

Definition at line 75 of file Material.h.

◆ Property() [11/12]

hellfire::Material::Property::Property ( const std::string &  name,
const glm::mat3 &  value,
const std::string &  uniform = "" 
)
inline

Definition at line 79 of file Material.h.

◆ Property() [12/12]

hellfire::Material::Property::Property ( const std::string &  name,
const glm::mat4 &  value,
const std::string &  uniform = "" 
)
inline

Definition at line 83 of file Material.h.

Member Data Documentation

◆ name

std::string hellfire::Material::Property::name

Definition at line 29 of file Material.h.

◆ type

PropertyType hellfire::Material::Property::type

Definition at line 28 of file Material.h.

◆ uniform_name

std::string hellfire::Material::Property::uniform_name

Definition at line 32 of file Material.h.

◆ value

std::variant<float, glm::vec2, glm::vec3, glm::vec4, Texture *, bool, int, glm::mat3, glm::mat4> hellfire::Material::Property::value

Definition at line 30 of file Material.h.


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