bazar
1.3.1
|
#include <ipltexture.h>
Public Member Functions | |
IplTexture (IplImage *image=0, bool cache=true, bool smooth=true) | |
virtual | ~IplTexture () |
void | genTexture () |
Only call genTexture from a valid OpenGL context ! | |
void | loadTexture () |
void | disableTexture () |
void | update () |
void | setImage (IplImage *image) |
IplImage * | getImage () |
IplImage * | getIm () |
const IplImage * | getIm () const |
void | freeImage () |
double | u (double x) |
Get the U texel coordinates from pixel coordinate x. | |
double | v (double y) |
Get the V texel coordinates from pixel coordinate y (axis pointing down). | |
void | regen () |
force texture regeneration. | |
void | addRef () |
Add a reference to the reference counter. | |
void | unref () |
void | clearWithoutDelete () |
Represent a texture in video memory, with optional caching.
Honours many IplImage fields like nChannels, depth, align, and origin.
Definition at line 44 of file ipltexture.h.
|
inline |
Definition at line 47 of file ipltexture.h.
|
virtual |
Definition at line 4 of file ipltexture.cpp.
|
inline |
Add a reference to the reference counter.
Definition at line 74 of file ipltexture.h.
|
inline |
Definition at line 81 of file ipltexture.h.
void IplTexture::disableTexture | ( | ) |
Definition at line 103 of file ipltexture.cpp.
Referenced by drawBackground(), and photo_draw().
|
inline |
Definition at line 62 of file ipltexture.h.
void IplTexture::genTexture | ( | ) |
Only call genTexture from a valid OpenGL context !
Definition at line 9 of file ipltexture.cpp.
Referenced by loadTexture().
|
inline |
Definition at line 60 of file ipltexture.h.
Referenced by drawBackground(), LightMap::LightMap(), and photometric_calibration().
|
inline |
Definition at line 61 of file ipltexture.h.
|
inline |
Definition at line 59 of file ipltexture.h.
void IplTexture::loadTexture | ( | ) |
Definition at line 43 of file ipltexture.cpp.
References genTexture().
Referenced by drawBackground(), and photo_draw().
void IplTexture::regen | ( | ) |
void IplTexture::setImage | ( | IplImage * | image | ) |
Definition at line 117 of file ipltexture.cpp.
References update().
Referenced by geom_calib_idle(), and photo_idle().
|
inline |
Get the U texel coordinates from pixel coordinate x.
Definition at line 65 of file ipltexture.h.
Referenced by drawBackground().
void IplTexture::unref | ( | ) |
Removes a reference to the reference counter, and delete the texture if it reaches 0.
Definition at line 110 of file ipltexture.cpp.
|
inline |
Definition at line 57 of file ipltexture.h.
Referenced by regen(), and setImage().
|
inline |
Get the V texel coordinates from pixel coordinate y (axis pointing down).
Definition at line 68 of file ipltexture.h.
Referenced by drawBackground().