Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
Shader Class Reference

#include <Shader.h>

Public Member Functions

 Shader (const std::string &vertexPath, const std::string &fragmentPath, QOpenGLFunctions_4_5_Core *glFuncs)
 
 ~Shader ()
 
void use () const
 
void setBool (const std::string &name, bool value) const
 
void setInt (const std::string &name, int value) const
 
void setFloat (const std::string &name, float value) const
 
void setMat4 (const std::string &name, const glm::mat4 &mat) const
 
void setVec3 (const std::string &name, const glm::vec3 &vec) const
 

Detailed Description

Definition at line 6 of file Shader.h.

Constructor & Destructor Documentation

◆ Shader()

Shader::Shader ( const std::string &  vertexPath,
const std::string &  fragmentPath,
QOpenGLFunctions_4_5_Core *  glFuncs 
)

Definition at line 7 of file Shader.cpp.

◆ ~Shader()

Shader::~Shader ( )

Definition at line 23 of file Shader.cpp.

Member Function Documentation

◆ setBool()

void Shader::setBool ( const std::string &  name,
bool  value 
) const

Definition at line 59 of file Shader.cpp.

Here is the caller graph for this function:

◆ setFloat()

void Shader::setFloat ( const std::string &  name,
float  value 
) const

Definition at line 65 of file Shader.cpp.

◆ setInt()

void Shader::setInt ( const std::string &  name,
int  value 
) const

Definition at line 62 of file Shader.cpp.

◆ setMat4()

void Shader::setMat4 ( const std::string &  name,
const glm::mat4 &  mat 
) const

Definition at line 68 of file Shader.cpp.

◆ setVec3()

void Shader::setVec3 ( const std::string &  name,
const glm::vec3 &  vec 
) const

Definition at line 71 of file Shader.cpp.

◆ use()

void Shader::use ( ) const

Definition at line 55 of file Shader.cpp.

Here is the caller graph for this function:

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