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

#include <Shader.h>

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

Public Member Functions

bool createFromFile (unsigned int type, const std::string &path)
 
bool createFromSource (unsigned int type, const std::string &src)
 
void release ()
 

Protected Member Functions

void create ()
 
- 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
 

Additional Inherited Members

- Public Attributes inherited from gl::Object
unsigned int id = 0xFFFFFFFF
 

Detailed Description

Definition at line 27 of file Shader.h.

Member Function Documentation

◆ create()

void gl::Shader::create ( )
inlineprotectedvirtual

Implements gl::Object.

Definition at line 36 of file Shader.h.

◆ createFromFile()

bool gl::Shader::createFromFile ( unsigned int  type,
const std::string &  path 
)

Definition at line 37 of file Shader.cpp.

Here is the call graph for this function:

◆ createFromSource()

bool gl::Shader::createFromSource ( unsigned int  type,
const std::string &  src 
)

Definition at line 10 of file Shader.cpp.

Here is the caller graph for this function:

◆ release()

void gl::Shader::release ( )
virtual

Implements gl::Object.

Definition at line 52 of file Shader.cpp.

Here is the caller graph for this function:

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