Developer Documentation
Loading...
Searching...
No Matches
ACG::ProgramBase Class Referenceabstract

Public Member Functions

 ProgramBase (GLenum tgt)
 
bool is_valid () const
 
GLuint id () const
 
virtual void bind ()=0
 
virtual void unbind ()=0
 
virtual bool load (const char *prog_text)=0
 
bool load_file (const char *_filename)
 

Protected Attributes

bool valid
 
GLenum target
 
GLuint program
 

Detailed Description

Definition at line 553 of file globjects.hh.

Constructor & Destructor Documentation

◆ ProgramBase()

ACG::ProgramBase::ProgramBase ( GLenum  tgt)
inline

Definition at line 557 of file globjects.hh.

◆ ~ProgramBase()

virtual ACG::ProgramBase::~ProgramBase ( )
inlinevirtual

Definition at line 558 of file globjects.hh.

Member Function Documentation

◆ id()

GLuint ACG::ProgramBase::id ( ) const
inline

Definition at line 561 of file globjects.hh.

◆ is_valid()

bool ACG::ProgramBase::is_valid ( ) const
inline

Definition at line 560 of file globjects.hh.

◆ load_file()

bool ACG::ProgramBase::load_file ( const char *  _filename)
inline

Definition at line 567 of file globjects.hh.

Member Data Documentation

◆ program

GLuint ACG::ProgramBase::program
protected

Definition at line 594 of file globjects.hh.

◆ target

GLenum ACG::ProgramBase::target
protected

Definition at line 593 of file globjects.hh.

◆ valid

bool ACG::ProgramBase::valid
protected

Definition at line 592 of file globjects.hh.


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