From f467c975765552fd92aa06cffb26a1311d05cf98 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 27 Jul 2005 17:22:24 +0000 Subject: More helper functions/defines and bugfixes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16118 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/gl_common.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'libvo/gl_common.h') diff --git a/libvo/gl_common.h b/libvo/gl_common.h index 62d34ef5fd..e4e442b3c6 100644 --- a/libvo/gl_common.h +++ b/libvo/gl_common.h @@ -29,6 +29,30 @@ #ifndef GL_WRITE_ONLY #define GL_WRITE_ONLY 0x88B9 #endif +#ifndef GL_BGR +#define GL_BGR 0x80E0 +#endif +#ifndef GL_BGRA +#define GL_BGRA 0x80E1 +#endif +#ifndef GL_UNSIGNED_BYTE_3_3_2 +#define GL_UNSIGNED_BYTE_3_3_2 0x8032 +#endif +#ifndef GL_UNSIGNED_BYTE_2_3_3_REV +#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 +#endif +#ifndef GL_UNSIGNED_SHORT_5_6_5 +#define GL_UNSIGNED_SHORT_5_6_5 0x8363 +#endif +#ifndef GL_UNSIGNED_SHORT_5_6_5_REV +#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 +#endif +#ifndef GL_UNSIGNED_SHORT_5_5_5_1 +#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 +#endif +#ifndef GL_UNSIGNED_SHORT_1_5_5_5_REV +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 +#endif void glAdjustAlignment(int stride); @@ -36,6 +60,12 @@ const char *glValName(GLint value); int glFindFormat(uint32_t format, uint32_t *bpp, GLenum *gl_texfmt, GLenum *gl_format, GLenum *gl_type); +int glFmt2bpp(GLenum format, GLenum type); +void glCreateClearTex(GLenum target, GLenum fmt, GLint filter, + int w, int h, char val); +void glUploadTex(GLenum target, GLenum format, GLenum type, + const char *data, int stride, + int x, int y, int w, int h, int slice); //! could not set new window, will continue drawing into the old one. #define SET_WINDOW_FAILED -1 -- cgit v1.2.3