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

#include <ShaderLoader.h>

Public Member Functions

 ShaderLoader ()=delete
 

Static Public Member Functions

static ShaderCreate (const std::string &p_filePath)
 
static ShaderCreateFromSource (const std::string &p_vertexShader, const std::string &p_fragmentShader)
 
static void Recompile (Shader &p_shader, const std::string &p_filePath)
 
static bool Destroy (Shader *&p_shader)
 

Detailed Description

Handle the Shader creation and destruction

Constructor & Destructor Documentation

◆ ShaderLoader()

OvRendering::Resources::Loaders::ShaderLoader::ShaderLoader ( )
delete

Disabled constructor

Member Function Documentation

◆ Create()

OvRendering::Resources::Shader * OvRendering::Resources::Loaders::ShaderLoader::Create ( const std::string &  p_filePath)
static

Create a shader

Parameters
p_filePath

◆ CreateFromSource()

OvRendering::Resources::Shader * OvRendering::Resources::Loaders::ShaderLoader::CreateFromSource ( const std::string &  p_vertexShader,
const std::string &  p_fragmentShader 
)
static

Create a shader from source

Parameters
p_vertexShader
p_fragmentShader

◆ Destroy()

bool OvRendering::Resources::Loaders::ShaderLoader::Destroy ( Shader *&  p_shader)
static

Destroy a shader

Parameters
p_shader

◆ Recompile()

void OvRendering::Resources::Loaders::ShaderLoader::Recompile ( Shader p_shader,
const std::string &  p_filePath 
)
static

Recompile a shader

Parameters
p_shader
p_filePath

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