summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-08 18:50:11 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-08 18:50:11 +0000
commit2a61cc675bb029dfefaf76d120b12b34a6b22ea1 (patch)
treedf6205707b7fb83cdff8b6966701338d78228942 /libvo/gl_common.h
parent10adc6a9c0bd19a85ac8a7b2d480ab5a295ffc63 (diff)
downloadmpv-2a61cc675bb029dfefaf76d120b12b34a6b22ea1.tar.bz2
mpv-2a61cc675bb029dfefaf76d120b12b34a6b22ea1.tar.xz
loadGPUProgram function to load fragment program with error checking and statistics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18654 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.h')
-rw-r--r--libvo/gl_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h
index df446a5601..55a6ba8ba8 100644
--- a/libvo/gl_common.h
+++ b/libvo/gl_common.h
@@ -189,6 +189,9 @@
#ifndef GL_PROGRAM_ERROR_POSITION
#define GL_PROGRAM_ERROR_POSITION 0x864B
#endif
+#ifndef GL_PROGRAM_ERROR_STRING
+#define GL_PROGRAM_ERROR_STRING 0x8874
+#endif
/** \} */ // end of glextdefines group
void glAdjustAlignment(int stride);
@@ -208,6 +211,7 @@ void glUploadTex(GLenum target, GLenum format, GLenum type,
void glDrawTex(GLfloat x, GLfloat y, GLfloat w, GLfloat h,
GLfloat tx, GLfloat ty, GLfloat tw, GLfloat th,
int sx, int sy, int rect_tex, int is_yv12, int flip);
+int loadGPUProgram(GLenum target, char *prog);
/** \addtogroup glconversion
* \{ */