summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-25 16:30:00 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-25 16:30:00 +0000
commitd29c9ddf19c11fcdaa0a29d02e6540bf5ec89888 (patch)
tree80c85379554fe803b0b8ccf93c56ccd68e08d15b /libvo/gl_common.h
parentce8756fc4c0cdbf1513e81db8e525b6de8fcb84d (diff)
downloadmpv-d29c9ddf19c11fcdaa0a29d02e6540bf5ec89888.tar.bz2
mpv-d29c9ddf19c11fcdaa0a29d02e6540bf5ec89888.tar.xz
support loading a texture from a PPM file
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16593 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.h')
-rw-r--r--libvo/gl_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h
index fd2a4436ae..a09824bb9b 100644
--- a/libvo/gl_common.h
+++ b/libvo/gl_common.h
@@ -141,6 +141,8 @@ int glFindFormat(uint32_t format, uint32_t *bpp, GLint *gl_texfmt,
int glFmt2bpp(GLenum format, GLenum type);
void glCreateClearTex(GLenum target, GLenum fmt, GLint filter,
int w, int h, unsigned char val);
+int glCreatePPMTex(GLenum target, GLenum fmt, GLint filter,
+ FILE *f, int *width, int *height, int *maxval);
void glUploadTex(GLenum target, GLenum format, GLenum type,
const char *data, int stride,
int x, int y, int w, int h, int slice);