Go to the documentation of this file.
52 void setLocation(::ShaderLocationIndex,
const std::string &name);
55 Shader(
const std::string &vertexFile,
const std::string &fragmentFile,
bool lonely =
false);
A Three-dimensionnal Vector data type.
Definition: Vector3.hpp:15
std::string _fragmentFile
The fragment file of the shader.
Definition: Shaders.hpp:22
const std::shared_ptr<::Shader > & getShaderPtr() const
Definition: Shaders.cpp:24
std::string _vertexFile
The vertex file of the shader.
Definition: Shaders.hpp:20
std::map< std::string, int > _shaderIndexVars
Fetch and cache the index of the shader variable on the first set of the var.
Definition: Shaders.hpp:28
Definition: IAudio.hpp:12
Shader(const std::string &vertexFile, const std::string &fragmentFile, bool lonely=false)
ctor if no vertexfile in needed set it to nullptr
Definition: Shaders.cpp:16
static void BeginUsingCustomShader(RAY::Shader &shader)
start using a custom shader when drawing
Definition: Shaders.cpp:56
static void EndUsingCustomShader()
stop using the custom shader
Definition: Shaders.cpp:61
Definition: Cache.hpp:112
void setShaderUniformVar(const std::string &varName, float value)
The set var for float values.
Definition: Shaders.cpp:29
static Cache<::Shader > _shadersCache
Definition: Shaders.hpp:30
Definition: Shaders.hpp:16
Shader & operator=(const Shader &)=default
Assignment operator.
void setLocation(::ShaderLocationIndex, const std::string &name)
std::shared_ptr<::Shader > _rayLibShader
Raylib shader struct.
Definition: Shaders.hpp:25