~glproxy-dev/glproxy/trunk

« back to all changes in this revision

Viewing changes to src/glx_proxy.c

  • Committer: Marc Ordinas i Llopis
  • Date: 2011-12-02 09:08:23 UTC
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: marc.ordinasillopis@linaro.org-20111202090823-xnj0mefd7w1nmspr
Cleanup: Clean up headers, tabs and unused parameters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 *  Marc Ordinas i Llopis, Collabora Ltd <marc.ordinasillopis@linaro.org>
26
26
 */
27
27
 
28
 
#include <GL/gl_proxy.h>
29
 
#include <GL/glx_proxy.h>
30
 
#include <GL/glxext_proxy.h>
 
28
#include "GL/gl_proxy.h"
 
29
#include "GL/glx_proxy.h"
 
30
#include "GL/glxext_proxy.h"
31
31
 
32
32
PFNPROXYCHOOSEVISUALPROC            pfnProxyChooseVisual = NULL;
33
33
PFNPROXYCREATECONTEXTPROC           pfnProxyCreateContext = NULL;
80
80
int glxProxyInit(void *handle)
81
81
{
82
82
        if (NULL == handle) {
83
 
                return -1;
84
 
        }
85
 
 
86
 
        pfnProxyChooseVisual = glProxyGetProcAddr(handle, "glXChooseVisual");
87
 
        pfnProxyCreateContext = glProxyGetProcAddr(handle, "glXCreateContext");
88
 
        pfnProxyDestroyContext = glProxyGetProcAddr(handle, "glXDestroyContext");
89
 
        pfnProxyMakeCurrent = glProxyGetProcAddr(handle, "glXMakeCurrent");
90
 
        pfnProxyCopyContext = glProxyGetProcAddr(handle, "glXCopyContext");
91
 
        pfnProxySwapBuffers = glProxyGetProcAddr(handle, "glXSwapBuffers");
92
 
        pfnProxyCreateGLXPixmap = glProxyGetProcAddr(handle, "glXCreateGLXPixmap");
93
 
        pfnProxyDestroyGLXPixmap = glProxyGetProcAddr(handle, "glXDestroyGLXPixmap");
94
 
        pfnProxyQueryExtension = glProxyGetProcAddr(handle, "glXQueryExtension");
95
 
        pfnProxyQueryVersion = glProxyGetProcAddr(handle, "glXQueryVersion");
96
 
        pfnProxyIsDirect = glProxyGetProcAddr(handle, "glXIsDirect");
97
 
        pfnProxyGetConfig = glProxyGetProcAddr(handle, "glXGetConfig");
98
 
        pfnProxyGetCurrentContext = glProxyGetProcAddr(handle, "glXGetCurrentContext");
99
 
        pfnProxyGetCurrentDrawable = glProxyGetProcAddr(handle, "glXGetCurrentDrawable");
100
 
        pfnProxyWaitGL = glProxyGetProcAddr(handle, "glXWaitGL");
101
 
        pfnProxyWaitX = glProxyGetProcAddr(handle, "glXWaitX");     
102
 
        pfnProxyUseXFont = glProxyGetProcAddr(handle, "glXUseXFont");
103
 
        pfnProxyQueryExtensionsString = glProxyGetProcAddr(handle, "glXQueryExtensionsString");
104
 
        pfnProxyQueryServerString = glProxyGetProcAddr(handle, "glXQueryServerString");
105
 
        pfnProxyGetClientString = glProxyGetProcAddr(handle, "glXGetClientString");
106
 
        pfnProxyGetCurrentDisplay = glProxyGetProcAddr(handle, "glXGetCurrentDisplay");
107
 
        pfnProxyChooseFBConfig = glProxyGetProcAddr(handle, "glXChooseFBConfig");
108
 
        pfnProxyGetFBConfigAttrib = glProxyGetProcAddr(handle, "glXGetFBConfigAttrib");
109
 
        pfnProxyGetFBConfigs = glProxyGetProcAddr(handle, "glXGetFBConfigs");
110
 
        pfnProxyGetVisualFromFBConfig = glProxyGetProcAddr(handle, "glXGetVisualFromFBConfig");
111
 
        pfnProxyCreateWindow = glProxyGetProcAddr(handle, "glXCreateWindow");
112
 
        pfnProxyDestroyWindow = glProxyGetProcAddr(handle, "glXDestroyWindow");
113
 
        pfnProxyCreatePixmap = glProxyGetProcAddr(handle, "glXCreatePixmap");
114
 
        pfnProxyDestroyPixmap = glProxyGetProcAddr(handle, "glXDestroyPixmap");
115
 
        pfnProxyCreatePBuffer = glProxyGetProcAddr(handle, "glXCreatePBuffer");
116
 
        pfnProxyDestroyPBuffer = glProxyGetProcAddr(handle, "glXDestroyPBuffer");
117
 
        pfnProxyQueryDrawable = glProxyGetProcAddr(handle, "glXQueryDrawable");
118
 
        pfnProxyCreateNewContext = glProxyGetProcAddr(handle, "glXCreateNewContext");
119
 
        pfnProxyMakeContextCurrent = glProxyGetProcAddr(handle, "glXMakeContextCurrent");
120
 
        pfnProxyGetCurrentReadDrawable = glProxyGetProcAddr(handle, "glXGetCurrentReadDrawable");
121
 
        pfnProxyQueryContext = glProxyGetProcAddr(handle, "glXQueryContext");
122
 
        pfnProxySelectEvent = glProxyGetProcAddr(handle, "glXSelectEvent");
123
 
        pfnProxyGetSelectedEvent = glProxyGetProcAddr(handle, "glXGetSelectecEvent");
124
 
 
125
 
        return 0;
 
83
        return -1;
 
84
    }
 
85
 
 
86
    pfnProxyChooseVisual = glProxyGetProcAddr(handle, "glXChooseVisual");
 
87
    pfnProxyCreateContext = glProxyGetProcAddr(handle, "glXCreateContext");
 
88
    pfnProxyDestroyContext = glProxyGetProcAddr(handle, "glXDestroyContext");
 
89
    pfnProxyMakeCurrent = glProxyGetProcAddr(handle, "glXMakeCurrent");
 
90
    pfnProxyCopyContext = glProxyGetProcAddr(handle, "glXCopyContext");
 
91
    pfnProxySwapBuffers = glProxyGetProcAddr(handle, "glXSwapBuffers");
 
92
    pfnProxyCreateGLXPixmap = glProxyGetProcAddr(handle, "glXCreateGLXPixmap");
 
93
    pfnProxyDestroyGLXPixmap
 
94
            = glProxyGetProcAddr(handle, "glXDestroyGLXPixmap");
 
95
    pfnProxyQueryExtension = glProxyGetProcAddr(handle, "glXQueryExtension");
 
96
    pfnProxyQueryVersion = glProxyGetProcAddr(handle, "glXQueryVersion");
 
97
    pfnProxyIsDirect = glProxyGetProcAddr(handle, "glXIsDirect");
 
98
    pfnProxyGetConfig = glProxyGetProcAddr(handle, "glXGetConfig");
 
99
    pfnProxyGetCurrentContext = glProxyGetProcAddr(handle,
 
100
            "glXGetCurrentContext");
 
101
    pfnProxyGetCurrentDrawable = glProxyGetProcAddr(handle,
 
102
            "glXGetCurrentDrawable");
 
103
    pfnProxyWaitGL = glProxyGetProcAddr(handle, "glXWaitGL");
 
104
    pfnProxyWaitX = glProxyGetProcAddr(handle, "glXWaitX");
 
105
    pfnProxyUseXFont = glProxyGetProcAddr(handle, "glXUseXFont");
 
106
    pfnProxyQueryExtensionsString = glProxyGetProcAddr(handle,
 
107
            "glXQueryExtensionsString");
 
108
    pfnProxyQueryServerString = glProxyGetProcAddr(handle,
 
109
            "glXQueryServerString");
 
110
    pfnProxyGetClientString = glProxyGetProcAddr(handle, "glXGetClientString");
 
111
    pfnProxyGetCurrentDisplay = glProxyGetProcAddr(handle,
 
112
            "glXGetCurrentDisplay");
 
113
    pfnProxyChooseFBConfig = glProxyGetProcAddr(handle, "glXChooseFBConfig");
 
114
    pfnProxyGetFBConfigAttrib = glProxyGetProcAddr(handle,
 
115
            "glXGetFBConfigAttrib");
 
116
    pfnProxyGetFBConfigs = glProxyGetProcAddr(handle, "glXGetFBConfigs");
 
117
    pfnProxyGetVisualFromFBConfig = glProxyGetProcAddr(handle,
 
118
            "glXGetVisualFromFBConfig");
 
119
    pfnProxyCreateWindow = glProxyGetProcAddr(handle, "glXCreateWindow");
 
120
    pfnProxyDestroyWindow = glProxyGetProcAddr(handle, "glXDestroyWindow");
 
121
    pfnProxyCreatePixmap = glProxyGetProcAddr(handle, "glXCreatePixmap");
 
122
    pfnProxyDestroyPixmap = glProxyGetProcAddr(handle, "glXDestroyPixmap");
 
123
    pfnProxyCreatePBuffer = glProxyGetProcAddr(handle, "glXCreatePBuffer");
 
124
    pfnProxyDestroyPBuffer = glProxyGetProcAddr(handle, "glXDestroyPBuffer");
 
125
    pfnProxyQueryDrawable = glProxyGetProcAddr(handle, "glXQueryDrawable");
 
126
    pfnProxyCreateNewContext
 
127
            = glProxyGetProcAddr(handle, "glXCreateNewContext");
 
128
    pfnProxyMakeContextCurrent = glProxyGetProcAddr(handle,
 
129
            "glXMakeContextCurrent");
 
130
    pfnProxyGetCurrentReadDrawable = glProxyGetProcAddr(handle,
 
131
            "glXGetCurrentReadDrawable");
 
132
    pfnProxyQueryContext = glProxyGetProcAddr(handle, "glXQueryContext");
 
133
    pfnProxySelectEvent = glProxyGetProcAddr(handle, "glXSelectEvent");
 
134
    pfnProxyGetSelectedEvent
 
135
            = glProxyGetProcAddr(handle, "glXGetSelectecEvent");
 
136
 
 
137
    return 0;
126
138
}