texture_impl Class Reference

Inheritance diagram for texture_impl:

Inheritance graph
[legend]
Collaboration diagram for texture_impl:

Collaboration graph
[legend]

List of all members.


Detailed Description

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 stringget_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_bufferbuffer
gsgl::flags_t flags
texture_format format
string name
GLuint opengl_id
const GLenum opengl_texture_unit

Constructor & Destructor Documentation

texture_impl ( const string fname,
const texture_format format,
const GLenum  opengl_texture_unit,
const gsgl::flags_t  flags 
)

texture_impl ( SDL_Surface *  surface,
const string name,
const texture_format format,
const GLenum  opengl_texture_unit,
const gsgl::flags_t  flags 
)

Definition at line 253 of file texture.cpp.

References texture_impl::buffer.

~texture_impl (  )  [virtual]

Definition at line 260 of file texture.cpp.

References texture_impl::buffer, and texture_impl::unload().


Member Function Documentation

void attach (  )  [inherited]

void bind (  ) 

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]

Definition at line 57 of file shared.hpp.

Referenced by string::unshare().

const int get_texture_unit (  )  [inline]

Definition at line 228 of file texture.cpp.

Referenced by texture::get_texture_unit().

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 (  ) 


Member Data Documentation

rgba_buffer* buffer [private]

gsgl::flags_t flags [private]

Definition at line 215 of file texture.cpp.

Referenced by texture_impl::bind().

Definition at line 214 of file texture.cpp.

Referenced by texture_impl::bind().

string name [private]

Definition at line 213 of file texture.cpp.

Referenced by texture_impl::bind().

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]

Definition at line 217 of file texture.cpp.

Referenced by texture_impl::bind().


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