comparison libvo/gl_common.h @ 16592:1bb2b2696451

support loading a texture from a PPM file
author reimar
date Sun, 25 Sep 2005 16:30:00 +0000
parents 26b156d7a68d
children b3a9fb41f475
comparison
equal deleted inserted replaced
16591:e5f3a9a03914 16592:1bb2b2696451
139 int glFindFormat(uint32_t format, uint32_t *bpp, GLint *gl_texfmt, 139 int glFindFormat(uint32_t format, uint32_t *bpp, GLint *gl_texfmt,
140 GLenum *gl_format, GLenum *gl_type); 140 GLenum *gl_format, GLenum *gl_type);
141 int glFmt2bpp(GLenum format, GLenum type); 141 int glFmt2bpp(GLenum format, GLenum type);
142 void glCreateClearTex(GLenum target, GLenum fmt, GLint filter, 142 void glCreateClearTex(GLenum target, GLenum fmt, GLint filter,
143 int w, int h, unsigned char val); 143 int w, int h, unsigned char val);
144 int glCreatePPMTex(GLenum target, GLenum fmt, GLint filter,
145 FILE *f, int *width, int *height, int *maxval);
144 void glUploadTex(GLenum target, GLenum format, GLenum type, 146 void glUploadTex(GLenum target, GLenum format, GLenum type,
145 const char *data, int stride, 147 const char *data, int stride,
146 int x, int y, int w, int h, int slice); 148 int x, int y, int w, int h, int slice);
147 void glDrawTex(GLfloat x, GLfloat y, GLfloat w, GLfloat h, 149 void glDrawTex(GLfloat x, GLfloat y, GLfloat w, GLfloat h,
148 GLfloat tx, GLfloat ty, GLfloat tw, GLfloat th, 150 GLfloat tx, GLfloat ty, GLfloat tw, GLfloat th,