![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Shader type (generic), not managed by C++ RAII. More...
Public Member Functions | |
| 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... | |
Static Public Member Functions | |
| ::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 | |
| void | set (const ::Shader &shader) |
Shader type (generic), not managed by C++ RAII.
Definition at line 16 of file ShaderUnmanaged.hpp.
|
inline |
Retrieves the id value for the object.
Definition at line 53 of file ShaderUnmanaged.hpp.
|
inline |
Get shader uniform location.
Definition at line 82 of file ShaderUnmanaged.hpp.
|
inline |
Get shader attribute location.
Definition at line 89 of file ShaderUnmanaged.hpp.
|
inline |
Retrieves the locs value for the object.
Definition at line 54 of file ShaderUnmanaged.hpp.
|
inlinestatic |
Load shader from files and bind default locations.
Definition at line 34 of file ShaderUnmanaged.hpp.
|
inlinestatic |
Load a shader from memory.
Definition at line 46 of file ShaderUnmanaged.hpp.
|
inline |
Set shader uniform value (matrix 4x4)
Definition at line 118 of file ShaderUnmanaged.hpp.
|
inline |
Set shader uniform value for texture.
Definition at line 128 of file ShaderUnmanaged.hpp.
|
inline |
Set shader uniform value.
Definition at line 98 of file ShaderUnmanaged.hpp.
|
inline |
Set shader uniform value vector.
Definition at line 108 of file ShaderUnmanaged.hpp.