Public Member Functions | Private Attributes
TomGine::tgTexture Class Reference

Class tgTexture. More...

#include <tgTexture.h>

List of all members.

Public Member Functions

void Bind (int stage=0) const
void CopyTexImage2D (int width, int height)
void CopyTexImage2D (int x, int y, int width, int height)
int GetHeight () const
bool GetImageData (unsigned char *image_data)
GLuint GetTextureID ()
int GetWidth () const
bool Load (void *image_data, int width, int height, GLenum format=GL_RGB, GLenum internal=GL_UNSIGNED_BYTE)
bool Load (const char *filename)
bool Save (const char *filename, bool overwrite=true)
 tgTexture ()
 ~tgTexture ()

Private Attributes

int m_height
GLuint m_texture_id
int m_width

Detailed Description

Class tgTexture.

Definition at line 19 of file tgTexture.h.


Constructor & Destructor Documentation

Definition at line 9 of file tgTexture.cpp.

Definition at line 21 of file tgTexture.cpp.


Member Function Documentation

void tgTexture::Bind ( int  stage = 0) const

Definition at line 58 of file tgTexture.cpp.

void tgTexture::CopyTexImage2D ( int  width,
int  height 
)

Definition at line 64 of file tgTexture.cpp.

void tgTexture::CopyTexImage2D ( int  x,
int  y,
int  width,
int  height 
)

Definition at line 71 of file tgTexture.cpp.

int TomGine::tgTexture::GetHeight ( ) const [inline]

Definition at line 42 of file tgTexture.h.

bool tgTexture::GetImageData ( unsigned char *  image_data)

Definition at line 52 of file tgTexture.cpp.

GLuint TomGine::tgTexture::GetTextureID ( ) [inline]

Definition at line 40 of file tgTexture.h.

int TomGine::tgTexture::GetWidth ( ) const [inline]

Definition at line 41 of file tgTexture.h.

bool tgTexture::Load ( void *  image_data,
int  width,
int  height,
GLenum  format = GL_RGB,
GLenum  internal = GL_UNSIGNED_BYTE 
)

Definition at line 26 of file tgTexture.cpp.

bool tgTexture::Load ( const char *  filename)

Definition at line 34 of file tgTexture.cpp.

bool tgTexture::Save ( const char *  filename,
bool  overwrite = true 
)

Definition at line 43 of file tgTexture.cpp.


Member Data Documentation

Definition at line 24 of file tgTexture.h.

Definition at line 22 of file tgTexture.h.

Definition at line 23 of file tgTexture.h.


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


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:27