![]() |
Fling Engine
0.00.1
Fling Engine is a game engine written in Vulkan
|
A material represents what properties should be given to a set of shaders. More...
#include <Material.h>
Inherits Fling::JsonFile.
Public Types | |
| enum | Type : UINT8 { Type::Default, Type::Cubemap, Type::Reflection, Type::Debug } |
Public Member Functions | |
| Material (Guid t_ID) | |
| const PBRTextures & | GetPBRTextures () const |
| Material::Type | GetType () const |
Public Member Functions inherited from Fling::JsonFile | |
| JsonFile (Guid t_ID) | |
| Construct a new JsonFile object. More... | |
| virtual | ~JsonFile ()=default |
| FORCEINLINE nlohmann::json & | GetJsonData () |
| Get a reference to the current JSON data that is loaded from this file. More... | |
| void | Write () |
| Write the contents of this JSON file out to given name. More... | |
Public Member Functions inherited from Fling::Resource | |
| Resource (Fling::Guid t_ID) | |
| virtual | ~Resource ()=default |
| Fling::Guid_Handle | GetGuidHandle () const |
| Get GUID handle (just an int) for this resources guid. More... | |
| const std::string & | GetGuidString () const |
| Get the human-readable string representation of this GUID. More... | |
| std::string | GetFilepathReleativeToAssets () const |
| Returns the full file path that is relative to the assets path based on the GUID of this resource. More... | |
Static Public Member Functions | |
| static std::shared_ptr< Fling::Material > | Create (Guid t_ID) |
| static std::shared_ptr< Fling::Material > | GetDefaultMat () |
| static Material::Type | GetTypeFromStr (const std::string &t_Str) |
| static const std::string & | GetStringFromType (const Material::Type) |
Static Public Member Functions inherited from Fling::JsonFile | |
| static std::shared_ptr< Fling::JsonFile > | Create (Guid t_ID) |
Private Member Functions | |
| void | LoadMaterial () |
Private Attributes | |
| PBRTextures | m_Textures = {} |
| Material::Type | m_Type = Type::Default |
| float | m_Shininiess = 0.5f |
Static Private Attributes | |
| static std::unordered_map< std::string, Material::Type > | TypeMap |
Friends | |
| class | Renderer |
Additional Inherited Members | |
Protected Member Functions inherited from Fling::JsonFile | |
| void | LoadJsonFile () |
| Loads the JsonFile based on Guid path. More... | |
Protected Attributes inherited from Fling::JsonFile | |
| nlohmann::json | m_JsonData |
Protected Attributes inherited from Fling::Resource | |
| Fling::Guid | m_Guid |
| std::string | m_HumanReadableName |
A material represents what properties should be given to a set of shaders.
This is referenced by the MeshRednerer and Renderer::DrawFrame
|
strong |
|
explicit |
|
static |
|
static |
|
inline |
|
static |
|
inline |
|
static |
|
private |
|
friend |
|
private |
|
private |
|
private |
|
staticprivate |
1.8.13