Public Member Functions | Public Attributes
rtc::Texture Class Reference

#include <rtcTexture.h>

List of all members.

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

Detailed Description

Definition at line 32 of file rtcTexture.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.

Definition at line 290 of file rtcTexture.cpp.

Definition at line 297 of file rtcTexture.cpp.

Definition at line 74 of file rtcTexture.cpp.

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.


Member Data Documentation

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.

Definition at line 77 of file rtcTexture.h.

Definition at line 77 of file rtcTexture.h.

Definition at line 70 of file rtcTexture.h.

Definition at line 78 of file rtcTexture.h.

Definition at line 74 of file rtcTexture.h.

Definition at line 72 of file rtcTexture.h.

Definition at line 73 of file rtcTexture.h.


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


rtc
Author(s): Benjamin Pitzer
autogenerated on Thu Jan 2 2014 11:04:54