HPC_Voxel_Engine 0.2.0
High-Performance C++ Voxel Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Renderer::Shader Class Reference

#include <src/renderer/Shader.h>

Collaboration diagram for Renderer::Shader:
Collaboration graph

Public Member Functions

 Shader (const char *cVertexPath, const char *cFragmentPath)
 
void Use () const
 
void SetMat4 (const std::string &name, const Core::Mat4 &mat) const
 
void SetVec2 (const std::string &name, const Core::Vec3 &vec) const
 
void SetVec3 (const std::string &name, const Core::Vec3 &vec) const
 
void SetInt (const std::string &name, int iValue) const
 

Public Attributes

unsigned int ID
 

Private Member Functions

void checkCompileErrors (unsigned int uiShader, std::string strType)
 

Constructor & Destructor Documentation

◆ Shader()

Renderer::Shader::Shader ( const char *  cVertexPath,
const char *  cFragmentPath 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ checkCompileErrors()

void Renderer::Shader::checkCompileErrors ( unsigned int  uiShader,
std::string  strType 
)
inlineprivate
Here is the caller graph for this function:

◆ SetInt()

void Renderer::Shader::SetInt ( const std::string &  name,
int  iValue 
) const
inline
Here is the caller graph for this function:

◆ SetMat4()

void Renderer::Shader::SetMat4 ( const std::string &  name,
const Core::Mat4 mat 
) const
inline
Here is the caller graph for this function:

◆ SetVec2()

void Renderer::Shader::SetVec2 ( const std::string &  name,
const Core::Vec3 vec 
) const
inline
Here is the caller graph for this function:

◆ SetVec3()

void Renderer::Shader::SetVec3 ( const std::string &  name,
const Core::Vec3 vec 
) const
inline
Here is the caller graph for this function:

◆ Use()

void Renderer::Shader::Use ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ ID

unsigned int Renderer::Shader::ID

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