PeriDyno 0.8.2
Public Member Functions | List of all members
gl::Program Class Reference

#include <Shader.h>

Inheritance diagram for gl::Program:
Inheritance graph
[legend]
Collaboration diagram for gl::Program:
Collaboration graph
[legend]

Public Member Functions

void create ()
 
void release ()
 
void attachShader (const Shader &shader)
 
bool link ()
 
void use ()
 
void setFloat (const char *name, float v)
 
void setInt (const char *name, int v)
 
void setVec4 (const char *name, dyno::Vec4f v)
 
void setVec3 (const char *name, dyno::Vec3f v)
 
void setVec2 (const char *name, dyno::Vec2f v)
 

Additional Inherited Members

- Public Attributes inherited from gl::Object
unsigned int id = 0xFFFFFFFF
 
- Protected Member Functions inherited from gl::Object
virtual void create ()=0
 
virtual void release ()=0
 
virtual bool isValid () const
 
 Object ()=default
 
virtual ~Object ()=default
 
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 

Detailed Description

Definition at line 40 of file Shader.h.

Member Function Documentation

◆ attachShader()

void gl::Program::attachShader ( const Shader shader)

Definition at line 77 of file Shader.cpp.

Here is the caller graph for this function:

◆ create()

void gl::Program::create ( )
virtual

Implements gl::Object.

Definition at line 64 of file Shader.cpp.

Here is the caller graph for this function:

◆ link()

bool gl::Program::link ( )

Definition at line 82 of file Shader.cpp.

Here is the caller graph for this function:

◆ release()

void gl::Program::release ( )
virtual

Implements gl::Object.

Definition at line 69 of file Shader.cpp.

Here is the caller graph for this function:

◆ setFloat()

void gl::Program::setFloat ( const char *  name,
float  v 
)

Definition at line 103 of file Shader.cpp.

Here is the caller graph for this function:

◆ setInt()

void gl::Program::setInt ( const char *  name,
int  v 
)

Definition at line 109 of file Shader.cpp.

Here is the caller graph for this function:

◆ setVec2()

void gl::Program::setVec2 ( const char *  name,
dyno::Vec2f  v 
)

Definition at line 115 of file Shader.cpp.

Here is the caller graph for this function:

◆ setVec3()

void gl::Program::setVec3 ( const char *  name,
dyno::Vec3f  v 
)

Definition at line 121 of file Shader.cpp.

Here is the caller graph for this function:

◆ setVec4()

void gl::Program::setVec4 ( const char *  name,
dyno::Vec4f  v 
)

Definition at line 127 of file Shader.cpp.

Here is the caller graph for this function:

◆ use()

void gl::Program::use ( )

Definition at line 98 of file Shader.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: