diff options
author | Sven Gothel <[email protected]> | 2001-04-06 10:12:40 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-04-06 10:12:40 +0000 |
commit | fd8682b066651abf71067c4d4266ffee302b69f6 (patch) | |
tree | 47cf449b25400628d61092a946270ead036e0d1e /CNativeCode/glxtool.h | |
parent | ee8232711affbf052576b038aee079250c985416 (diff) |
2.7.0 release ..
Diffstat (limited to 'CNativeCode/glxtool.h')
-rwxr-xr-x | CNativeCode/glxtool.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/CNativeCode/glxtool.h b/CNativeCode/glxtool.h new file mode 100755 index 0000000..03e28a5 --- /dev/null +++ b/CNativeCode/glxtool.h @@ -0,0 +1,101 @@ +#ifndef _GLXTOOL_H + /** + * glxtool.h + * + * Copyright (C) 2001 Sven Goethel + * + * GNU Library General Public License + * as published by the Free Software Foundation + * + * http://www.gnu.org/copyleft/lgpl.html + * General dynamical loading OpenGL (GL/GLU) support for: + */ + + #define _GLXTOOL_H + + #include <X11/Xlib.h> + #include <X11/Xutil.h> + #include <X11/Xatom.h> + + #include "gltool.h" + + #include "glx-disp-var.h" + + typedef struct { + XVisualInfo * visual; + GLXContext gc; + int success; /* 1: OK, 0: ERROR */ + } VisualGC; + + LIBAPI int LIBAPIENTRY get_GC + ( Display *display, Window win, XVisualInfo *visual, + GLXContext *gc, GLXContext gc_share, + int verbose ); + + LIBAPI int LIBAPIENTRY setVisualAttribListByGLCapabilities( + int visualAttribList[/*>=32*/], + GLCapabilities *glCaps ); + + LIBAPI VisualGC LIBAPIENTRY findVisualGlX( Display *display, + Window rootWin, + Window * pWin, + int width, int height, + GLCapabilities * glCaps, + int * pOwnWin, + XSetWindowAttributes * pOwnWinAttr, + unsigned long ownWinmask, + GLXContext shareWith, + int offscreen, + Pixmap *pix, + int verbose + ); + + LIBAPI XVisualInfo * LIBAPIENTRY findVisualIdByID + ( XVisualInfo ** visualList, + int visualID, Display *disp, + Window win, int verbose); + + LIBAPI XVisualInfo * LIBAPIENTRY findVisualIdByFeature + ( XVisualInfo ** visualList, + Display *disp, Window win, + GLCapabilities *glCaps, + int verbose); + + LIBAPI int LIBAPIENTRY testVisualInfo + ( Display *display, XVisualInfo * vi, + GLCapabilities *glCaps, int verbose); + + LIBAPI int LIBAPIENTRY setGLCapabilities + ( Display * disp, + XVisualInfo * visual, GLCapabilities *glCaps); + + LIBAPI void LIBAPIENTRY printAllVisualInfo + ( Display *disp, Window win, int verbose); + LIBAPI void LIBAPIENTRY printVisualInfo + ( Display *display, XVisualInfo * vi); + + LIBAPI Window LIBAPIENTRY createOwnOverlayWin + (Display *display, + Window rootwini, Window parentWin, + XSetWindowAttributes * pOwnWinAttr, + unsigned long ownWinmask, + XVisualInfo *visual, int width, int height); + + LIBAPI void LIBAPIENTRY destroyOwnOverlayWin + (Display *display, Window *newWin, + XSetWindowAttributes * pOwnWinAttr); + + /** + * do not call this one directly, + * use fetch_GL_FUNCS (gltool.h) instead + */ + LIBAPI void LIBAPIENTRY fetch_GLX_FUNCS + (const char * libGLName, + const char * libGLUName, int force); + + LIBAPI int LIBAPIENTRY x11gl_myErrorHandler( + Display *pDisp, XErrorEvent *p_error); + + LIBAPI int LIBAPIENTRY x11gl_myIOErrorHandler(Display *pDisp); + +#endif |