Definition at line 95 of file shader.cpp.
Public Member Functions | |
void | compile () |
fragment_shader (const gsgl::string &fname) | |
int | get_id () |
void | read_file (const string &fname) |
void | unload () |
Protected Member Functions | |
void | create () |
Protected Attributes | |
const string | fname |
list< string > | lines |
int | opengl_id |
fragment_shader | ( | const gsgl::string & | fname | ) |
Definition at line 205 of file shader.cpp.
void compile | ( | ) | [inherited] |
Definition at line 144 of file shader.cpp.
References simple_array::append(), CHECK_GL_ERRORS, shader_base::create(), shader_base::fname, shader_base::lines, shader_base::opengl_id, simple_array::ptr(), simple_array::size(), and string::w_string().
void create | ( | ) | [protected, virtual] |
Implements shader_base.
Definition at line 211 of file shader.cpp.
References CHECK_GL_ERRORS, shader_base::fname, shader_base::opengl_id, and string::w_string().
int get_id | ( | ) | [inline, inherited] |
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().
Definition at line 59 of file shader.cpp.
Referenced by shader_base::compile(), fragment_shader::create(), and vertex_shader::create().
Definition at line 61 of file shader.cpp.
Referenced by shader_base::compile(), and shader_base::read_file().
int opengl_id [protected, inherited] |
Definition at line 60 of file shader.cpp.
Referenced by shader_base::compile(), fragment_shader::create(), vertex_shader::create(), shader_base::get_id(), and shader_base::unload().