Mercurial > mplayer.hg
annotate libvo/gl_common.h @ 14116:7ee2ed4a08d5
synced to 1.57 (link updates)
author | gabrov |
---|---|
date | Mon, 06 Dec 2004 00:38:36 +0000 |
parents | c4033dcb986f |
children | f0c1ee83b216 |
rev | line source |
---|---|
13653
799f81d3cb19
added gl_common for code used by both vo_gl.c and vo_gl2.c.
reimar
parents:
diff
changeset
|
1 #ifndef __GL_COMMON_H__ |
799f81d3cb19
added gl_common for code used by both vo_gl.c and vo_gl2.c.
reimar
parents:
diff
changeset
|
2 #define __GL_COMMON_H__ |
799f81d3cb19
added gl_common for code used by both vo_gl.c and vo_gl2.c.
reimar
parents:
diff
changeset
|
3 |
13843 | 4 #include "mp_msg.h" |
5 #include "config.h" | |
6 | |
13653
799f81d3cb19
added gl_common for code used by both vo_gl.c and vo_gl2.c.
reimar
parents:
diff
changeset
|
7 #include <GL/gl.h> |
13843 | 8 #include "video_out.h" |
9 | |
10 #ifndef GL_WIN32 | |
11 #include <X11/Xlib.h> | |
12 #include <GL/glx.h> | |
13 #include "x11_common.h" | |
14 #endif | |
13653
799f81d3cb19
added gl_common for code used by both vo_gl.c and vo_gl2.c.
reimar
parents:
diff
changeset
|
15 |
799f81d3cb19
added gl_common for code used by both vo_gl.c and vo_gl2.c.
reimar
parents:
diff
changeset
|
16 void glAdjustAlignment(int stride); |
799f81d3cb19
added gl_common for code used by both vo_gl.c and vo_gl2.c.
reimar
parents:
diff
changeset
|
17 |
14078
c4033dcb986f
More similar code from gl and gl2 moved to gl_common
reimar
parents:
13921
diff
changeset
|
18 const char *glValName(GLint value); |
c4033dcb986f
More similar code from gl and gl2 moved to gl_common
reimar
parents:
13921
diff
changeset
|
19 |
c4033dcb986f
More similar code from gl and gl2 moved to gl_common
reimar
parents:
13921
diff
changeset
|
20 int glFindFormat(uint32_t format, uint32_t *bpp, GLenum *gl_texfmt, |
c4033dcb986f
More similar code from gl and gl2 moved to gl_common
reimar
parents:
13921
diff
changeset
|
21 GLenum *gl_format, GLenum *gl_type); |
c4033dcb986f
More similar code from gl and gl2 moved to gl_common
reimar
parents:
13921
diff
changeset
|
22 |
13843 | 23 //! could not set new window, will continue drawing into the old one. |
24 #define SET_WINDOW_FAILED -1 | |
25 //! new window is set, could even transfer the OpenGL context. | |
26 #define SET_WINDOW_OK 0 | |
27 //! new window is set, but the OpenGL context needs to be reinitialized. | |
28 #define SET_WINDOW_REINIT 1 | |
29 | |
30 #ifndef GL_WIN32 | |
31 int setGlWindow(XVisualInfo **vinfo, GLXContext *context, Window win); | |
13921 | 32 void releaseGlContext(XVisualInfo **vinfo, GLXContext *context); |
13653
799f81d3cb19
added gl_common for code used by both vo_gl.c and vo_gl2.c.
reimar
parents:
diff
changeset
|
33 #endif |
13843 | 34 |
35 #endif |