Overload  1.1
Game engine with editor
Public Member Functions | Static Public Member Functions | List of all members
OvCore::Resources::Loaders::MaterialLoader Class Reference

#include <MaterialLoader.h>

Public Member Functions

 MaterialLoader ()=delete
 

Static Public Member Functions

static MaterialCreate (const std::string &p_path)
 
static void Reload (Material &p_material, const std::string &p_path)
 
static void Save (Material &p_material, const std::string &p_path)
 
static bool Destroy (Material *&p_material)
 

Detailed Description

Handle the creation of materials

Constructor & Destructor Documentation

◆ MaterialLoader()

OvCore::Resources::Loaders::MaterialLoader::MaterialLoader ( )
delete

Disabled constructor

Member Function Documentation

◆ Create()

OvCore::Resources::Material * OvCore::Resources::Loaders::MaterialLoader::Create ( const std::string &  p_path)
static

Instantiate a material from a file

Parameters
p_path@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

◆ Destroy()

bool OvCore::Resources::Loaders::MaterialLoader::Destroy ( Material *&  p_material)
static

Destroy the given material

Parameters
p_material

◆ Reload()

void OvCore::Resources::Loaders::MaterialLoader::Reload ( Material p_material,
const std::string &  p_path 
)
static

Reload the material using the given file path

Parameters
p_material
p_path

◆ Save()

void OvCore::Resources::Loaders::MaterialLoader::Save ( Material p_material,
const std::string &  p_path 
)
static

Save the material to the given path

Parameters
p_material
p_path

The documentation for this class was generated from the following files: