27 #ifndef GL_TEX_IMAGE_H
28 #define GL_TEX_IMAGE_H
45 static void DrawQuad(
float x1,
float x2,
float y1,
float y2);
56 virtual void FillMargin(
int marginx,
int marginy);
109 return (gl_format ==GL_LUMINANCE ||gl_format == GL_LUMINANCE_ALPHA||
110 gl_format == GL_RGB|| gl_format == GL_RGBA||
111 gl_format == GL_BGR || gl_format == GL_BGRA) &&
112 (gl_type == GL_UNSIGNED_BYTE || gl_type == GL_FLOAT || gl_type == GL_UNSIGNED_SHORT);
115 #if !defined(_MSC_VER) || _MSC_VER > 1200
116 template <
class U
int>
118 int ds,
const Uint * pin, Uint * pout);
119 template <
class U
int>
121 int ds,
const Uint * pin,
float * pout,
int skip = 0);
124 int ds,
const float * pin,
float * pout,
int skip = 0);
130 unsigned int gl_format,
unsigned int gl_type);
145 virtual void FillMargin(
int marginx,
int marginy);
152 void DrawMargin(
int right,
int bottom,
int mx,
int my);
filament::Texture::InternalFormat format
void CopyFromPBO(GLuint pbo, int width, int height, GLenum format=GL_RGBA)
virtual void InitTexture(int width, int height, int clamp_to_edge=1)
virtual void FillMargin(int marginx, int marginy)
int CopyToPBO(GLuint pbo, int width, int height, GLenum format=GL_RGBA)
void SaveToASCII(const char *path)
void DrawScaledQuad(float scale)
virtual void SetImageSize(int width, int height)
static void DetachFBO(int i)
void DrawMargin(int right, int bottom)
virtual void TexConvertRGB()
virtual void ZeroHistoMargin()
void FitRealTexViewPort()
virtual void DrawQuadDS(int scale)
virtual void DrawQuadUS(int scale)
static void UnbindMultiTex(int n)
void DrawMargin(int right, int bottom, int mx, int my)
virtual void ZeroHistoMargin()
virtual void DrawQuadUS(int scale)
virtual void SetImageSize(int width, int height)
virtual void InitTexture(int width, int height, int clamp_to_edge=1)
virtual void DrawQuadDS(int scale)
virtual void FillMargin(int marginx, int marginy)
virtual void TexConvertRGB()
static const std::string path