#include <rtcTexture.h>
Public Member Functions | |
| void | bind (GLenum target=GL_TEXTURE0) |
| void | create (int width, int height) |
| void | createRGBA (int width, int height) |
| void | draw () |
| void | draw2 (double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) |
| void | fromImage (const Image4uc &image) |
| void | fromImage (const Image3uc &image) |
| bool | loadFromImage (const char *filename) |
| virtual bool | read (std::istream &is, bool ascii) |
| bool | saveToImage (const char *filename) |
| Texture (bool multi_use=false, int max_texture_size=1024) | |
| void | toImage (Image4uc &image) |
| void | unbind () |
| void | unloadTexture () |
| void | update () |
| void | updateRGBA () |
| virtual bool | write (std::ostream &os, bool ascii) const |
| virtual | ~Texture () |
Public Attributes | |
| GLenum | bind_target |
| int | image_height |
| int | image_width |
| int | max_texture_size |
| float | max_u |
| float | max_v |
| bool | multi_use |
| unsigned char * | texture_data |
| int | texture_height |
| unsigned int | texture_id |
| int | texture_width |
Definition at line 32 of file rtcTexture.h.
| rtc::Texture::Texture | ( | bool | multi_use = false, |
| int | max_texture_size = 1024 |
||
| ) |
Definition at line 35 of file rtcTexture.cpp.
| rtc::Texture::~Texture | ( | ) | [virtual] |
Definition at line 42 of file rtcTexture.cpp.
| void rtc::Texture::bind | ( | GLenum | target = GL_TEXTURE0 | ) |
Definition at line 282 of file rtcTexture.cpp.
| void rtc::Texture::create | ( | int | width, |
| int | height | ||
| ) |
Definition at line 47 of file rtcTexture.cpp.
| void rtc::Texture::createRGBA | ( | int | width, |
| int | height | ||
| ) |
Definition at line 94 of file rtcTexture.cpp.
| void rtc::Texture::draw | ( | ) |
Definition at line 120 of file rtcTexture.cpp.
| void rtc::Texture::draw2 | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | x3, | ||
| double | y3, | ||
| double | x4, | ||
| double | y4 | ||
| ) |
Definition at line 138 of file rtcTexture.cpp.
| void rtc::Texture::fromImage | ( | const Image4uc & | image | ) |
Definition at line 200 of file rtcTexture.cpp.
| void rtc::Texture::fromImage | ( | const Image3uc & | image | ) |
Definition at line 159 of file rtcTexture.cpp.
| bool rtc::Texture::loadFromImage | ( | const char * | filename | ) |
Definition at line 253 of file rtcTexture.cpp.
| bool rtc::Texture::read | ( | std::istream & | is, |
| bool | ascii | ||
| ) | [virtual] |
Definition at line 277 of file rtcTexture.cpp.
| bool rtc::Texture::saveToImage | ( | const char * | filename | ) |
Definition at line 264 of file rtcTexture.cpp.
| void rtc::Texture::toImage | ( | Image4uc & | image | ) |
Definition at line 240 of file rtcTexture.cpp.
| void rtc::Texture::unbind | ( | ) |
Definition at line 290 of file rtcTexture.cpp.
| void rtc::Texture::unloadTexture | ( | ) |
Definition at line 297 of file rtcTexture.cpp.
| void rtc::Texture::update | ( | ) |
Definition at line 74 of file rtcTexture.cpp.
| void rtc::Texture::updateRGBA | ( | ) |
Definition at line 84 of file rtcTexture.cpp.
| bool rtc::Texture::write | ( | std::ostream & | os, |
| bool | ascii | ||
| ) | const [virtual] |
Definition at line 272 of file rtcTexture.cpp.
| GLenum rtc::Texture::bind_target |
Definition at line 80 of file rtcTexture.h.
Definition at line 76 of file rtcTexture.h.
Definition at line 75 of file rtcTexture.h.
Definition at line 71 of file rtcTexture.h.
| float rtc::Texture::max_u |
Definition at line 77 of file rtcTexture.h.
| float rtc::Texture::max_v |
Definition at line 77 of file rtcTexture.h.
Definition at line 70 of file rtcTexture.h.
| unsigned char* rtc::Texture::texture_data |
Definition at line 78 of file rtcTexture.h.
Definition at line 74 of file rtcTexture.h.
| unsigned int rtc::Texture::texture_id |
Definition at line 72 of file rtcTexture.h.
Definition at line 73 of file rtcTexture.h.