vertex_shader Class Reference

Inheritance diagram for vertex_shader:

Inheritance graph
[legend]
Collaboration diagram for vertex_shader:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 81 of file shader.cpp.


Public Member Functions

void compile ()
int get_id ()
void read_file (const string &fname)
void unload ()
 vertex_shader (const gsgl::string &fname)

Protected Member Functions

void create ()

Protected Attributes

const string fname
list< stringlines
int opengl_id

Constructor & Destructor Documentation

vertex_shader ( const gsgl::string fname  ) 

Definition at line 184 of file shader.cpp.


Member Function Documentation

void compile (  )  [inherited]

void create (  )  [protected, virtual]

Implements shader_base.

Definition at line 190 of file shader.cpp.

References CHECK_GL_ERRORS, shader_base::fname, shader_base::opengl_id, and string::w_string().

int get_id (  )  [inline, inherited]

Definition at line 67 of file shader.cpp.

References shader_base::opengl_id.

void read_file ( const string fname  )  [inherited]

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 (  )  [inherited]

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, inherited]

Definition at line 59 of file shader.cpp.

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

list<string> lines [protected, inherited]

Definition at line 61 of file shader.cpp.

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

int opengl_id [protected, inherited]


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