File MaterialViewer.cpp
FileList > layer > MaterialViewer.cpp
Go to the source code of this file
#include "MaterialViewer.h"#include "Material.h"#include "events/MaterialEvents.h"#include <optional>
Classes
| Type | Name |
|---|---|
| struct | MaterialParamEdit |
Public Functions
| Type | Name |
|---|---|
| std::optional< MaterialParamEdit > | EditMatColor (const char * name, glm::vec3 color) |
| std::optional< MaterialParamEdit > | EditMatFloat (const char * name, float value) |
| std::optional< MaterialParamEdit > | EditMatTexture (const char * name, const std::string & texture_name) |
| bool | EditName (std::string & name) |
| Material * | GetActiveMatPtr (ObjectID * obj) |
| std::optional< Material::MatDataType > | SelectType (Material::MatParaType tar, Material::MatDataType type) |
Public Functions Documentation
function EditMatColor
std::optional< MaterialParamEdit > EditMatColor (
const char * name,
glm::vec3 color
)
function EditMatFloat
std::optional< MaterialParamEdit > EditMatFloat (
const char * name,
float value
)
function EditMatTexture
std::optional< MaterialParamEdit > EditMatTexture (
const char * name,
const std::string & texture_name
)
function EditName
bool EditName (
std::string & name
)
function GetActiveMatPtr
Material * GetActiveMatPtr (
ObjectID * obj
)
function SelectType
std::optional< Material::MatDataType > SelectType (
Material::MatParaType tar,
Material::MatDataType type
)
The documentation for this class was generated from the following file src/UI/layer/MaterialViewer.cpp