|
| | Shader (const char *vsFileName, const char *fsFileName) |
| |
|
| Shader (const Shader &)=delete |
| |
| | Shader (const std::string_view vsFileName, const std::string_view fsFileName) |
| |
| | Shader (Shader &&other) noexcept |
| |
| | ~Shader () |
| | Unload shader from GPU memory (VRAM) More...
|
| |
| Shader & | BeginMode () |
| | Begin custom shader drawing. More...
|
| |
| Shader & | EndMode () |
| | End custom shader drawing (use default shader). More...
|
| |
| unsigned int | GetId () const |
| | Retrieves the id value for the object. More...
|
| |
| int | GetLocation (const std::string_view uniformName) const |
| | Get shader uniform location. More...
|
| |
| int | GetLocationAttrib (const std::string_view 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. More...
|
| |
| Shader & | operator= (const ::Shader &shader) |
| |
|
Shader & | operator= (const Shader &)=delete |
| |
| Shader & | operator= (Shader &&other) noexcept |
| |
| Shader & | SetValue (int uniformLoc, const ::Matrix &mat) |
| | Set shader uniform value (matrix 4x4) More...
|
| |
| Shader & | SetValue (int uniformLoc, const ::Texture2D &texture) |
| | Set shader uniform value for texture. More...
|
| |
| template<typename T > |
| Shader & | SetValue (int uniformLoc, const T &value, int uniformType) |
| | Set shader uniform value. More...
|
| |
| Shader & | SetValue (int uniformLoc, const void *value, int uniformType) |
| | Set shader uniform value. More...
|
| |
| Shader & | SetValue (int uniformLoc, const void *value, int uniformType, int count) |
| | Set shader uniform value vector. More...
|
| |
| template<typename T > |
| Shader & | SetValue (int uniformLoc, std::span< T > data, int uniformType) |
| | Set shader uniform value vector (represented as a std::span) More...
|
| |
| Shader & | SetValue (std::string_view uniformName, const ::Matrix &mat) |
| | Set shader uniform value (matrix 4x4) Automatically finds the location of the uniform given its name. More...
|
| |
| Shader & | SetValue (std::string_view uniformName, const ::Texture2D &texture) |
| | Set shader uniform value for texture Automatically finds the location of the uniform given its name. More...
|
| |
| template<typename T > |
| Shader & | SetValue (std::string_view uniformName, const T &value, int uniformType) |
| | Set shader uniform value Automatically finds the location of the uniform given its name. More...
|
| |
| Shader & | SetValue (std::string_view uniformName, const void *value, int uniformType) |
| | Set shader uniform value Automatically finds the location of the uniform given its name. More...
|
| |
| Shader & | SetValue (std::string_view uniformName, const void *value, int uniformType, int count) |
| | Set shader uniform value vector Automatically finds the location of the uniform given its name. More...
|
| |
| template<typename T > |
| Shader & | SetValue (std::string_view uniformName, std::span< T > data, int uniformType) |
| | Set shader uniform value vector (represented as a std::span) Automatically finds the location of the uniform given its name. More...
|
| |
| | 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) More...
|
| |
| | 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. More...
|
| |
| ShaderUnmanaged & | EndMode () |
| | End custom shader drawing (use default shader). More...
|
| |
| 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. More...
|
| |
| 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...
|
| |
|
| ::Shader | Load (const char *vsFileName, const char *fsFileName) |
| |
| ::Shader | Load (const std::string_view vsFileName, const std::string_view fsFileName) |
| | Load shader from files and bind default locations. More...
|
| |
| ::Shader | LoadFromMemory (const char *vsCode, const char *fsCode) |
| |
| ::Shader | LoadFromMemory (const std::string_view vsCode, const std::string_view fsCode) |
| | Load a shader from memory. More...
|
| |
| ::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...
|
| |
Shader type (generic)
Definition at line 17 of file Shader.hpp.