AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
gl::Program Class Reference

Classes#

class  Uniform
 

Public Member Functions#

 Program (Program &&program) noexcept
 
void load (const AString &vertex, const AString &fragment, const AVector< AString > &attribs={}, const AString &version={})
 
void loadVertexShader (const AString &vertex, bool raw)
 
void loadFragmentShader (const AString &fragment, bool raw)
 
void loadRaw (const AString &vertex, const AString &fragment)
 
void compile ()
 
void bindAttribute (uint32_t index, const AString &name)
 
void use () const
 
 Program (const Program &)=delete
 
uint32_t handle () const
 
int32_t getLocation (const Uniform &uniform) const
 
void set (const gl::Program::Uniform &uniform, int value) const
 
void set (const gl::Program::Uniform &uniform, float value) const
 
void set (const gl::Program::Uniform &uniform, double value) const
 
void set (const gl::Program::Uniform &uniform, glm::mat4 value) const
 
void set (const gl::Program::Uniform &uniform, glm::mat3 value) const
 
void set (const gl::Program::Uniform &uniform, glm::dmat4 value) const
 
void set (const gl::Program::Uniform &uniform, glm::vec2 value) const
 
void set (const gl::Program::Uniform &uniform, glm::vec3 value) const
 
void set (const gl::Program::Uniform &uniform, glm::vec4 value) const
 
void setArray (const gl::Program::Uniform &uniform, AArrayView< float > value) const
 
Programoperator= (Program &&program) noexcept
 
- Public Member Functions inherited from aui::noncopyable
 noncopyable (const noncopyable &)=delete
 
noncopyableoperator= (const noncopyable &)=delete
 

Static Public Member Functions#

static gl::Program *& currentShader ()
 

Detailed Description#

Examples
examples/app/fractal/src/FractalView.h.