1 /* Copyright (C) 2010 Nokia Corporation All Rights Reserved.
3 * Permission is hereby granted, free of charge, to any person obtaining a
4 * copy of this software and associated documentation files (the "Software"),
5 * to deal in the Software without restriction, including without limitation
6 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 * and/or sell copies of the Software, and to permit persons to whom the
8 * Software is furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice shall be included
11 * in all copies or substantial portions of the Software.
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 #if(CONFIG_OSMESA == 1)
28 #endif // (CONFIG_OSMESA == 1)
31 #endif // (CONFIG_GLX == 1)
32 #if(CONFIG_COCOA == 1)
34 #endif // (CONFIG_COCOA == 1)
37 #endif // (CONFIG_WGL == 1)
40 typedef struct GLESFuncs
42 void (*dglReadPixels)(void *pixels, unsigned *pbo, unsigned x, unsigned y,
43 unsigned width, unsigned height, unsigned format, unsigned type,
45 void (*glFlush)(void);
46 void (*glFinish)(void);
47 void (*dglBindTexImage)(unsigned width, unsigned height, char* pixels);
48 # if(CONFIG_OFFSCREEN == 1)
49 void (*dglDeletePBO)(unsigned pbo);
50 # endif // CONFIG_OFFSCREEN == 1
55 typedef struct DEGLContext
68 struct degl_ebo_s *ebo_bound;
70 # if(CONFIG_OSMESA == 1)
75 # endif // (CONFIG_OSMESA == 1)
83 # endif // (CONFIG_GLX == 1)
85 # if(CONFIG_COCOA == 1)
89 void *nsctx; // NSOpenGLContext*
92 # endif // (CONFIG_COCOA == 1)
103 # endif // (CONFIG_WGL == 1)