comparison libvo/gl_common.h @ 18653:5af43a16abc3

loadGPUProgram function to load fragment program with error checking and statistics
author reimar
date Thu, 08 Jun 2006 18:50:11 +0000
parents dd9a6e8005f3
children 6aa0b26d584b
comparison
equal deleted inserted replaced
18652:4fb10d3853b4 18653:5af43a16abc3
186 #ifndef GL_PROGRAM_FORMAT_ASCII 186 #ifndef GL_PROGRAM_FORMAT_ASCII
187 #define GL_PROGRAM_FORMAT_ASCII 0x8875 187 #define GL_PROGRAM_FORMAT_ASCII 0x8875
188 #endif 188 #endif
189 #ifndef GL_PROGRAM_ERROR_POSITION 189 #ifndef GL_PROGRAM_ERROR_POSITION
190 #define GL_PROGRAM_ERROR_POSITION 0x864B 190 #define GL_PROGRAM_ERROR_POSITION 0x864B
191 #endif
192 #ifndef GL_PROGRAM_ERROR_STRING
193 #define GL_PROGRAM_ERROR_STRING 0x8874
191 #endif 194 #endif
192 /** \} */ // end of glextdefines group 195 /** \} */ // end of glextdefines group
193 196
194 void glAdjustAlignment(int stride); 197 void glAdjustAlignment(int stride);
195 198
206 const void *data, int stride, 209 const void *data, int stride,
207 int x, int y, int w, int h, int slice); 210 int x, int y, int w, int h, int slice);
208 void glDrawTex(GLfloat x, GLfloat y, GLfloat w, GLfloat h, 211 void glDrawTex(GLfloat x, GLfloat y, GLfloat w, GLfloat h,
209 GLfloat tx, GLfloat ty, GLfloat tw, GLfloat th, 212 GLfloat tx, GLfloat ty, GLfloat tw, GLfloat th,
210 int sx, int sy, int rect_tex, int is_yv12, int flip); 213 int sx, int sy, int rect_tex, int is_yv12, int flip);
214 int loadGPUProgram(GLenum target, char *prog);
211 215
212 /** \addtogroup glconversion 216 /** \addtogroup glconversion
213 * \{ */ 217 * \{ */
214 //! do not use YUV conversion, this should always stay 0 218 //! do not use YUV conversion, this should always stay 0
215 #define YUV_CONVERSION_NONE 0 219 #define YUV_CONVERSION_NONE 0