#include <GLTexImage.h>
Public Member Functions | |
void | AttachToFBO (int i) |
void | BindTex () |
int | CheckTexture () |
void | CopyFromPBO (GLuint pbo, int width, int height, GLenum format=GL_RGBA) |
int | CopyToPBO (GLuint pbo, int width, int height, GLenum format=GL_RGBA) |
virtual void | DrawImage () |
void | DrawMargin (int right, int bottom) |
void | DrawQuad () |
virtual void | DrawQuadDS (int scale) |
void | DrawQuadMT4 () |
void | DrawQuadMT8 () |
void | DrawQuadReduction () |
void | DrawQuadReduction (int w, int h) |
virtual void | DrawQuadUS (int scale) |
void | DrawScaledQuad (float scale) |
virtual void | FillMargin (int marginx, int marginy) |
void | FitRealTexViewPort () |
void | FitTexViewPort () |
int | GetDrawHeight () |
int | GetDrawWidth () |
int | GetImgHeight () |
int | GetImgPixelCount () |
int | GetImgWidth () |
int | GetTexHeight () |
GLuint | GetTexID () |
int | GetTexPixelCount () |
int | GetTexWidth () |
GLTexImage () | |
virtual void | InitTexture (int width, int height, int clamp_to_edge=1) |
void | InitTexture (int width, int height, int clamp_to_edge, GLuint format) |
int | IsTexPacked () |
operator GLuint () | |
void | SaveToASCII (const char *path) |
virtual void | SetImageSize (int width, int height) |
virtual void | TexConvertRGB () |
virtual void | ZeroHistoMargin () |
void | ZeroHistoMargin (int hw, int hh) |
virtual | ~GLTexImage () |
Static Public Member Functions | |
static void | DetachFBO (int i) |
static void | DrawQuad (float x1, float x2, float y1, float y2) |
static void | UnbindMultiTex (int n) |
static void | UnbindTex () |
Protected Attributes | |
int | _drawHeight |
int | _drawWidth |
int | _imgHeight |
int | _imgWidth |
int | _texHeight |
GLuint | _texID |
int | _texWidth |
Friends | |
class | SiftGPU |
Definition at line 31 of file GLTexImage.h.
Definition at line 61 of file GLTexImage.cpp.
GLTexImage::~GLTexImage | ( | ) | [virtual] |
Definition at line 70 of file GLTexImage.cpp.
void GLTexImage::AttachToFBO | ( | int | i | ) |
Definition at line 368 of file GLTexImage.cpp.
void GLTexImage::BindTex | ( | ) |
Definition at line 164 of file GLTexImage.cpp.
int GLTexImage::CheckTexture | ( | ) |
Definition at line 75 of file GLTexImage.cpp.
void GLTexImage::CopyFromPBO | ( | GLuint | pbo, |
int | width, | ||
int | height, | ||
GLenum | format = GL_RGBA |
||
) |
Definition at line 1250 of file GLTexImage.cpp.
int GLTexImage::CopyToPBO | ( | GLuint | pbo, |
int | width, | ||
int | height, | ||
GLenum | format = GL_RGBA |
||
) |
Definition at line 1192 of file GLTexImage.cpp.
void GLTexImage::DetachFBO | ( | int | i | ) | [static] |
Definition at line 373 of file GLTexImage.cpp.
void GLTexImage::DrawImage | ( | ) | [virtual] |
Reimplemented in GLTexPacked.
Definition at line 351 of file GLTexImage.cpp.
void GLTexImage::DrawMargin | ( | int | right, |
int | bottom | ||
) |
Definition at line 238 of file GLTexImage.cpp.
void GLTexImage::DrawQuad | ( | float | x1, |
float | x2, | ||
float | y1, | ||
float | y2 | ||
) | [static] |
Definition at line 379 of file GLTexImage.cpp.
void GLTexImage::DrawQuad | ( | ) |
Definition at line 175 of file GLTexImage.cpp.
void GLTexImage::DrawQuadDS | ( | int | scale | ) | [virtual] |
Reimplemented in GLTexPacked.
Definition at line 406 of file GLTexImage.cpp.
void GLTexImage::DrawQuadMT4 | ( | ) |
Definition at line 262 of file GLTexImage.cpp.
void GLTexImage::DrawQuadMT8 | ( | ) |
Definition at line 299 of file GLTexImage.cpp.
void GLTexImage::DrawQuadReduction | ( | ) |
Definition at line 469 of file GLTexImage.cpp.
void GLTexImage::DrawQuadReduction | ( | int | w, |
int | h | ||
) |
Definition at line 433 of file GLTexImage.cpp.
void GLTexImage::DrawQuadUS | ( | int | scale | ) | [virtual] |
Reimplemented in GLTexPacked.
Definition at line 411 of file GLTexImage.cpp.
void GLTexImage::DrawScaledQuad | ( | float | scale | ) |
Definition at line 416 of file GLTexImage.cpp.
void GLTexImage::FillMargin | ( | int | marginx, |
int | marginy | ||
) | [virtual] |
Reimplemented in GLTexPacked.
Definition at line 186 of file GLTexImage.cpp.
void GLTexImage::FitRealTexViewPort | ( | ) |
Definition at line 363 of file GLTexImage.cpp.
void GLTexImage::FitTexViewPort | ( | ) |
Definition at line 358 of file GLTexImage.cpp.
int GLTexImage::GetDrawHeight | ( | ) | [inline] |
Definition at line 84 of file GLTexImage.h.
int GLTexImage::GetDrawWidth | ( | ) | [inline] |
Definition at line 83 of file GLTexImage.h.
int GLTexImage::GetImgHeight | ( | ) | [inline] |
Definition at line 80 of file GLTexImage.h.
int GLTexImage::GetImgPixelCount | ( | ) | [inline] |
Definition at line 77 of file GLTexImage.h.
int GLTexImage::GetImgWidth | ( | ) | [inline] |
Definition at line 79 of file GLTexImage.h.
int GLTexImage::GetTexHeight | ( | ) | [inline] |
Definition at line 82 of file GLTexImage.h.
GLuint GLTexImage::GetTexID | ( | ) | [inline] |
Definition at line 76 of file GLTexImage.h.
int GLTexImage::GetTexPixelCount | ( | ) | [inline] |
Definition at line 78 of file GLTexImage.h.
int GLTexImage::GetTexWidth | ( | ) | [inline] |
Definition at line 81 of file GLTexImage.h.
void GLTexImage::InitTexture | ( | int | width, |
int | height, | ||
int | clamp_to_edge = 1 |
||
) | [virtual] |
Reimplemented in GLTexPacked.
Definition at line 99 of file GLTexImage.cpp.
void GLTexImage::InitTexture | ( | int | width, |
int | height, | ||
int | clamp_to_edge, | ||
GLuint | format | ||
) |
Definition at line 134 of file GLTexImage.cpp.
int GLTexImage::IsTexPacked | ( | ) | [inline] |
Definition at line 86 of file GLTexImage.h.
GLTexImage::operator GLuint | ( | ) | [inline] |
Definition at line 75 of file GLTexImage.h.
void GLTexImage::SaveToASCII | ( | const char * | path | ) |
Definition at line 1217 of file GLTexImage.cpp.
void GLTexImage::SetImageSize | ( | int | width, |
int | height | ||
) | [virtual] |
Reimplemented in GLTexPacked.
Definition at line 93 of file GLTexImage.cpp.
void GLTexImage::TexConvertRGB | ( | ) | [virtual] |
Reimplemented in GLTexPacked.
Definition at line 391 of file GLTexImage.cpp.
void GLTexImage::UnbindMultiTex | ( | int | n | ) | [static] |
Definition at line 729 of file GLTexImage.cpp.
void GLTexImage::UnbindTex | ( | ) | [static] |
Definition at line 169 of file GLTexImage.cpp.
void GLTexImage::ZeroHistoMargin | ( | ) | [virtual] |
Reimplemented in GLTexPacked.
Definition at line 201 of file GLTexImage.cpp.
void GLTexImage::ZeroHistoMargin | ( | int | hw, |
int | hh | ||
) |
Definition at line 206 of file GLTexImage.cpp.
friend class SiftGPU [friend] |
Definition at line 89 of file GLTexImage.h.
int GLTexImage::_drawHeight [protected] |
Definition at line 40 of file GLTexImage.h.
int GLTexImage::_drawWidth [protected] |
Definition at line 39 of file GLTexImage.h.
int GLTexImage::_imgHeight [protected] |
Definition at line 36 of file GLTexImage.h.
int GLTexImage::_imgWidth [protected] |
Definition at line 35 of file GLTexImage.h.
int GLTexImage::_texHeight [protected] |
Definition at line 38 of file GLTexImage.h.
GLuint GLTexImage::_texID [protected] |
Definition at line 34 of file GLTexImage.h.
int GLTexImage::_texWidth [protected] |
Definition at line 37 of file GLTexImage.h.