Public Member Functions | Private Attributes
Tracking::Texture Class Reference

Class Texture. More...

#include <Texture.h>

List of all members.

Public Member Functions

void bind (int stage=0)
void copyFromTexture (Texture *tex)
void copyFromTexture (Texture *tex, int x, int y, unsigned w, unsigned h)
void copyTexImage2D (unsigned width, unsigned height)
void copyTexImage2D (int x, int y, unsigned width, unsigned height)
unsigned getHeight ()
bool getImageData (unsigned char *image_data)
int getResID ()
GLuint getTextureID ()
unsigned getWidth ()
bool load (unsigned char *image_data, unsigned width, unsigned height, GLenum format=GL_BGR)
bool load (const char *filename)
bool save (const char *filename)
void setResID (int id)
 Texture ()
cv::Mat toCvMat ()
 ~Texture ()

Private Attributes

unsigned m_height
int m_res_id
GLuint m_texture_id
unsigned m_width

Detailed Description

Class Texture.

Definition at line 20 of file Texture.h.


Constructor & Destructor Documentation

Definition at line 7 of file Texture.cpp.

Definition at line 17 of file Texture.cpp.


Member Function Documentation

void Texture::bind ( int  stage = 0)

Definition at line 51 of file Texture.cpp.

Definition at line 68 of file Texture.cpp.

void Texture::copyFromTexture ( Texture tex,
int  x,
int  y,
unsigned  w,
unsigned  h 
)

Definition at line 73 of file Texture.cpp.

void Texture::copyTexImage2D ( unsigned  width,
unsigned  height 
)

Definition at line 57 of file Texture.cpp.

void Texture::copyTexImage2D ( int  x,
int  y,
unsigned  width,
unsigned  height 
)

Definition at line 61 of file Texture.cpp.

unsigned Tracking::Texture::getHeight ( ) [inline]

Definition at line 45 of file Texture.h.

bool Texture::getImageData ( unsigned char *  image_data)

Definition at line 45 of file Texture.cpp.

int Tracking::Texture::getResID ( ) [inline]

Definition at line 46 of file Texture.h.

GLuint Tracking::Texture::getTextureID ( ) [inline]

Definition at line 43 of file Texture.h.

unsigned Tracking::Texture::getWidth ( ) [inline]

Definition at line 44 of file Texture.h.

bool Texture::load ( unsigned char *  image_data,
unsigned  width,
unsigned  height,
GLenum  format = GL_BGR 
)

Definition at line 22 of file Texture.cpp.

bool Texture::load ( const char *  filename)

Definition at line 30 of file Texture.cpp.

bool Texture::save ( const char *  filename)

Definition at line 35 of file Texture.cpp.

void Tracking::Texture::setResID ( int  id) [inline]

Definition at line 47 of file Texture.h.

cv::Mat Texture::toCvMat ( )

Definition at line 78 of file Texture.cpp.


Member Data Documentation

unsigned Tracking::Texture::m_height [private]

Definition at line 25 of file Texture.h.

Definition at line 26 of file Texture.h.

Definition at line 23 of file Texture.h.

unsigned Tracking::Texture::m_width [private]

Definition at line 24 of file Texture.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