shader_base Class Reference

Inheritance diagram for shader_base:

Inheritance graph
[legend]
Collaboration diagram for shader_base:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 56 of file shader.cpp.


Public Member Functions

void compile ()
int get_id ()
void read_file (const string &fname)
 shader_base (const string &fname)
void unload ()
virtual ~shader_base ()

Protected Member Functions

virtual void create ()=0

Protected Attributes

const string fname
list< stringlines
int opengl_id

Constructor & Destructor Documentation

shader_base ( const string fname  ) 

Definition at line 109 of file shader.cpp.

References shader_base::read_file().

~shader_base (  )  [virtual]

Definition at line 116 of file shader.cpp.

References shader_base::unload().


Member Function Documentation

void compile (  ) 

virtual void create (  )  [protected, pure virtual]

Implemented in vertex_shader, and fragment_shader.

Referenced by shader_base::compile().

int get_id (  )  [inline]

Definition at line 67 of file shader.cpp.

References shader_base::opengl_id.

void read_file ( const string fname  ) 

Definition at line 122 of file shader.cpp.

References ft_stream::at_end(), and shader_base::lines.

Referenced by shader_base::shader_base().

void unload (  ) 

Definition at line 134 of file shader.cpp.

References CHECK_GL_ERRORS, and shader_base::opengl_id.

Referenced by shader_base::~shader_base().


Member Data Documentation

const string fname [protected]

Definition at line 59 of file shader.cpp.

Referenced by shader_base::compile(), fragment_shader::create(), and vertex_shader::create().

list<string> lines [protected]

Definition at line 61 of file shader.cpp.

Referenced by shader_base::compile(), and shader_base::read_file().

int opengl_id [protected]


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

Generated on Sat Mar 1 13:50:07 2008 for Periapsis Project by  doxygen 1.5.5