

Definition at line 210 of file texture.cpp.
Public Member Functions | |
| void | attach () |
| void | bind () |
| bool | detach () |
| Returns true if the object deleted itself. | |
| const string & | get_name () const |
| const int & | get_ref_count () const |
| const int | get_texture_unit () |
| texture_impl (SDL_Surface *surface, const string &name, const texture_format &format, const GLenum opengl_texture_unit, const gsgl::flags_t flags) | |
| texture_impl (const string &fname, const texture_format &format, const GLenum opengl_texture_unit, const gsgl::flags_t flags) | |
| void | unbind () |
| void | unload () |
| void | update () |
| virtual | ~texture_impl () |
Private Attributes | |
| rgba_buffer * | buffer |
| gsgl::flags_t | flags |
| texture_format | format |
| string | name |
| GLuint | opengl_id |
| const GLenum | opengl_texture_unit |
| texture_impl | ( | const string & | fname, | |
| const texture_format & | format, | |||
| const GLenum | opengl_texture_unit, | |||
| const gsgl::flags_t | flags | |||
| ) |
Definition at line 237 of file texture.cpp.
References texture_impl::buffer, string::c_string(), file::exists(), and string::w_string().
| texture_impl | ( | SDL_Surface * | surface, | |
| const string & | name, | |||
| const texture_format & | format, | |||
| const GLenum | opengl_texture_unit, | |||
| const gsgl::flags_t | flags | |||
| ) |
| ~texture_impl | ( | ) | [virtual] |
Definition at line 260 of file texture.cpp.
References texture_impl::buffer, and texture_impl::unload().
| void attach | ( | ) | [inherited] |
Definition at line 53 of file shared.cpp.
References shared_object::ref_count.
Referenced by font::font(), material::material(), model_part::model_part(), string::operator=(), string::string(), texture::texture(), and string::unshare().
| void bind | ( | ) |
Definition at line 267 of file texture.cpp.
References texture_impl::buffer, CHECK_GL_ERRORS, texture_impl::flags, texture_impl::format, rgba_buffer::get_height(), rgba_buffer::get_pointer(), rgba_buffer::get_width(), texture_impl::name, texture_impl::opengl_id, texture_impl::opengl_texture_unit, gsgl::platform::TEXTURE_COLORMAP, gsgl::platform::TEXTURE_HEIGHTMAP, gsgl::platform::TEXTURE_LOAD_UNCOMPRESSED, and string::w_string().
Referenced by texture::bind(), and texture_impl::update().
| bool detach | ( | ) | [inherited] |
Returns true if the object deleted itself.
Definition at line 59 of file shared.cpp.
References shared_object::ref_count.
Referenced by string::make_null(), string::unshare(), font::~font(), and texture::~texture().
| const string& get_name | ( | ) | const [inline] |
Definition at line 227 of file texture.cpp.
| const int& get_ref_count | ( | ) | const [inline, inherited] |
| const int get_texture_unit | ( | ) | [inline] |
| void unbind | ( | ) |
Definition at line 306 of file texture.cpp.
References CHECK_GL_ERRORS.
Referenced by texture::unbind(), and texture_impl::update().
| void unload | ( | ) |
Definition at line 320 of file texture.cpp.
References CHECK_GL_ERRORS, and texture_impl::opengl_id.
Referenced by texture::unload(), and texture_impl::~texture_impl().
| void update | ( | ) |
Definition at line 312 of file texture.cpp.
References texture_impl::bind(), texture_impl::buffer, rgba_buffer::get_height(), rgba_buffer::get_pointer(), rgba_buffer::get_width(), and texture_impl::unbind().
Referenced by texture::update().
rgba_buffer* buffer [private] |
Definition at line 220 of file texture.cpp.
Referenced by texture_impl::bind(), texture_impl::texture_impl(), texture_impl::update(), and texture_impl::~texture_impl().
gsgl::flags_t flags [private] |
texture_format format [private] |
GLuint opengl_id [private] |
Definition at line 218 of file texture.cpp.
Referenced by texture_impl::bind(), and texture_impl::unload().
const GLenum opengl_texture_unit [private] |
1.5.5