#include <Texture.h>
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 |
| Texture::Texture | ( | ) |
Definition at line 7 of file Texture.cpp.
Definition at line 17 of file Texture.cpp.
| void Texture::bind | ( | int | stage = 0 | ) |
Definition at line 51 of file Texture.cpp.
| void Texture::copyFromTexture | ( | Texture * | tex | ) |
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] |
| bool Texture::getImageData | ( | unsigned char * | image_data | ) |
Definition at line 45 of file Texture.cpp.
| int Tracking::Texture::getResID | ( | ) | [inline] |
| GLuint Tracking::Texture::getTextureID | ( | ) | [inline] |
| unsigned Tracking::Texture::getWidth | ( | ) | [inline] |
| 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] |
| cv::Mat Texture::toCvMat | ( | ) |
Definition at line 78 of file Texture.cpp.
unsigned Tracking::Texture::m_height [private] |
int Tracking::Texture::m_res_id [private] |
GLuint Tracking::Texture::m_texture_id [private] |
unsigned Tracking::Texture::m_width [private] |