Mercurial > mplayer.hg
comparison libvo/gl_common.h @ 16117:d280ec2b9e63
More helper functions/defines and bugfixes
author | reimar |
---|---|
date | Wed, 27 Jul 2005 17:22:24 +0000 |
parents | 519a307e3ccf |
children | ede5b4afd262 |
comparison
equal
deleted
inserted
replaced
16116:86ae36aac3ba | 16117:d280ec2b9e63 |
---|---|
27 #define GL_STREAM_DRAW 0x88E0 | 27 #define GL_STREAM_DRAW 0x88E0 |
28 #endif | 28 #endif |
29 #ifndef GL_WRITE_ONLY | 29 #ifndef GL_WRITE_ONLY |
30 #define GL_WRITE_ONLY 0x88B9 | 30 #define GL_WRITE_ONLY 0x88B9 |
31 #endif | 31 #endif |
32 #ifndef GL_BGR | |
33 #define GL_BGR 0x80E0 | |
34 #endif | |
35 #ifndef GL_BGRA | |
36 #define GL_BGRA 0x80E1 | |
37 #endif | |
38 #ifndef GL_UNSIGNED_BYTE_3_3_2 | |
39 #define GL_UNSIGNED_BYTE_3_3_2 0x8032 | |
40 #endif | |
41 #ifndef GL_UNSIGNED_BYTE_2_3_3_REV | |
42 #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 | |
43 #endif | |
44 #ifndef GL_UNSIGNED_SHORT_5_6_5 | |
45 #define GL_UNSIGNED_SHORT_5_6_5 0x8363 | |
46 #endif | |
47 #ifndef GL_UNSIGNED_SHORT_5_6_5_REV | |
48 #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 | |
49 #endif | |
50 #ifndef GL_UNSIGNED_SHORT_5_5_5_1 | |
51 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 | |
52 #endif | |
53 #ifndef GL_UNSIGNED_SHORT_1_5_5_5_REV | |
54 #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 | |
55 #endif | |
32 | 56 |
33 void glAdjustAlignment(int stride); | 57 void glAdjustAlignment(int stride); |
34 | 58 |
35 const char *glValName(GLint value); | 59 const char *glValName(GLint value); |
36 | 60 |
37 int glFindFormat(uint32_t format, uint32_t *bpp, GLenum *gl_texfmt, | 61 int glFindFormat(uint32_t format, uint32_t *bpp, GLenum *gl_texfmt, |
38 GLenum *gl_format, GLenum *gl_type); | 62 GLenum *gl_format, GLenum *gl_type); |
63 int glFmt2bpp(GLenum format, GLenum type); | |
64 void glCreateClearTex(GLenum target, GLenum fmt, GLint filter, | |
65 int w, int h, char val); | |
66 void glUploadTex(GLenum target, GLenum format, GLenum type, | |
67 const char *data, int stride, | |
68 int x, int y, int w, int h, int slice); | |
39 | 69 |
40 //! could not set new window, will continue drawing into the old one. | 70 //! could not set new window, will continue drawing into the old one. |
41 #define SET_WINDOW_FAILED -1 | 71 #define SET_WINDOW_FAILED -1 |
42 //! new window is set, could even transfer the OpenGL context. | 72 //! new window is set, could even transfer the OpenGL context. |
43 #define SET_WINDOW_OK 0 | 73 #define SET_WINDOW_OK 0 |