Mercurial > mplayer.hg
comparison libvo/gl_common.h @ 16099:629c54dc7e0d
support for rectangular and streaming textures.
author | reimar |
---|---|
date | Tue, 26 Jul 2005 10:16:18 +0000 |
parents | f0c1ee83b216 |
children | 519a307e3ccf |
comparison
equal
deleted
inserted
replaced
16098:9277070add37 | 16099:629c54dc7e0d |
---|---|
13 #include "w32_common.h" | 13 #include "w32_common.h" |
14 #else | 14 #else |
15 #include <X11/Xlib.h> | 15 #include <X11/Xlib.h> |
16 #include <GL/glx.h> | 16 #include <GL/glx.h> |
17 #include "x11_common.h" | 17 #include "x11_common.h" |
18 #endif | |
19 | |
20 #ifndef GL_TEXTURE_RECTANGLE | |
21 #define GL_TEXTURE_RECTANGLE 0x84F5 | |
22 #endif | |
23 #ifndef GL_PIXEL_UNPACK_BUFFER | |
24 #define GL_PIXEL_UNPACK_BUFFER 0x88EC | |
25 #endif | |
26 #ifndef GL_STREAM_DRAW | |
27 #define GL_STREAM_DRAW 0x88E0 | |
28 #endif | |
29 #ifndef GL_WRITE_ONLY | |
30 #define GL_WRITE_ONLY 0x88B9 | |
18 #endif | 31 #endif |
19 | 32 |
20 void glAdjustAlignment(int stride); | 33 void glAdjustAlignment(int stride); |
21 | 34 |
22 const char *glValName(GLint value); | 35 const char *glValName(GLint value); |
37 #else | 50 #else |
38 int setGlWindow(XVisualInfo **vinfo, GLXContext *context, Window win); | 51 int setGlWindow(XVisualInfo **vinfo, GLXContext *context, Window win); |
39 void releaseGlContext(XVisualInfo **vinfo, GLXContext *context); | 52 void releaseGlContext(XVisualInfo **vinfo, GLXContext *context); |
40 #endif | 53 #endif |
41 | 54 |
55 extern void (APIENTRY *BindBuffer)(GLenum, GLuint); | |
56 extern GLvoid* (APIENTRY *MapBuffer)(GLenum, GLenum); | |
57 extern GLboolean (APIENTRY *UnmapBuffer)(GLenum); | |
58 extern void (APIENTRY *BufferData)(GLenum, GLsizeiptr, const GLvoid *, GLenum); | |
59 extern void (APIENTRY *CombinerParameterfv)(GLenum, const GLfloat *); | |
60 extern void (APIENTRY *CombinerParameteri)(GLenum, GLint); | |
61 extern void (APIENTRY *CombinerInput)(GLenum, GLenum, GLenum, GLenum, GLenum, | |
62 GLenum); | |
63 extern void (APIENTRY *CombinerOutput)(GLenum, GLenum, GLenum, GLenum, GLenum, | |
64 GLenum, GLenum, GLboolean, GLboolean, | |
65 GLboolean); | |
66 extern void (APIENTRY *ActiveTexture)(GLenum); | |
67 extern void (APIENTRY *BindTexture)(GLenum, GLuint); | |
68 extern void (APIENTRY *MultiTexCoord2f)(GLenum, GLfloat, GLfloat); | |
69 extern void (APIENTRY *BindProgram)(GLenum, GLuint); | |
70 extern void (APIENTRY *ProgramString)(GLenum, GLenum, GLsizei, const GLvoid *); | |
71 extern void (APIENTRY *ProgramEnvParameter4f)(GLenum, GLuint, GLfloat, GLfloat, | |
72 GLfloat, GLfloat); | |
73 | |
42 #endif | 74 #endif |