raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Public Member Functions | |
Shader (const Shader &)=delete | |
Shader (Shader &&other) | |
~Shader () | |
Unload shader from GPU memory (VRAM) | |
Shader & | operator= (const Shader &)=delete |
Shader & | operator= (Shader &&other) noexcept |
ShaderUnmanaged () | |
ShaderUnmanaged (const ::Shader &shader) | |
ShaderUnmanaged (const char *vsFileName, const char *fsFileName) | |
ShaderUnmanaged (const std::string &vsFileName, const std::string &fsFileName) | |
ShaderUnmanaged (unsigned int id, int *locs=nullptr) | |
void | Unload () |
Unload shader from GPU memory (VRAM) | |
Public Member Functions inherited from raylib::ShaderUnmanaged | |
ShaderUnmanaged (const ::Shader &shader) | |
ShaderUnmanaged (const char *vsFileName, const char *fsFileName) | |
ShaderUnmanaged (const std::string &vsFileName, const std::string &fsFileName) | |
ShaderUnmanaged (unsigned int id, int *locs=nullptr) | |
ShaderUnmanaged & | BeginMode () |
Begin custom shader drawing. | |
ShaderUnmanaged & | EndMode () |
End custom shader drawing (use default shader). | |
unsigned int | GetId () const |
Retrieves the id value for the object. More... | |
int | GetLocation (const std::string &uniformName) const |
Get shader uniform location. More... | |
int | GetLocationAttrib (const std::string &attribName) const |
Get shader attribute location. More... | |
int * | GetLocs () const |
Retrieves the locs value for the object. More... | |
bool | IsValid () const |
Retrieves whether or not the shader is ready. | |
ShaderUnmanaged & | operator= (const ::Shader &shader) |
ShaderUnmanaged & | SetValue (int uniformLoc, const ::Matrix &mat) |
Set shader uniform value (matrix 4x4) More... | |
ShaderUnmanaged & | SetValue (int uniformLoc, const ::Texture2D &texture) |
Set shader uniform value for texture. More... | |
ShaderUnmanaged & | SetValue (int uniformLoc, const void *value, int uniformType) |
Set shader uniform value. More... | |
ShaderUnmanaged & | SetValue (int uniformLoc, const void *value, int uniformType, int count) |
Set shader uniform value vector. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from raylib::ShaderUnmanaged | |
::Shader | Load (const char *vsFileName, const char *fsFileName) |
::Shader | Load (const std::string &vsFileName, const std::string &fsFileName) |
Load shader from files and bind default locations. More... | |
::Shader | LoadFromMemory (const char *vsCode, const char *fsCode) |
::Shader | LoadFromMemory (const std::string &vsCode, const std::string &fsCode) |
Load a shader from memory. More... | |
Protected Member Functions inherited from raylib::ShaderUnmanaged | |
void | set (const ::Shader &shader) |
Shader type (generic)
Definition at line 15 of file Shader.hpp.