raylib-cpp
C++ object-oriented wrapper library for raylib.
Public Member Functions | List of all members
raylib::Shader Class Reference

Shader type (generic) More...

Public Member Functions

 Shader (const Shader &)=delete
 
 Shader (Shader &&other)
 
 ~Shader ()
 Unload shader from GPU memory (VRAM)
 
Shaderoperator= (const Shader &)=delete
 
Shaderoperator= (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)
 
ShaderUnmanagedBeginMode ()
 Begin custom shader drawing.
 
ShaderUnmanagedEndMode ()
 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.
 
ShaderUnmanagedoperator= (const ::Shader &shader)
 
ShaderUnmanagedSetValue (int uniformLoc, const ::Matrix &mat)
 Set shader uniform value (matrix 4x4) More...
 
ShaderUnmanagedSetValue (int uniformLoc, const ::Texture2D &texture)
 Set shader uniform value for texture. More...
 
ShaderUnmanagedSetValue (int uniformLoc, const void *value, int uniformType)
 Set shader uniform value. More...
 
ShaderUnmanagedSetValue (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)
 

Detailed Description

Shader type (generic)

Definition at line 15 of file Shader.hpp.