author | Matt Plumtree <matt.plumtree@nokia.com> |
Tue, 02 Nov 2010 09:40:31 +0000 | |
branch | bug235_bringup_0 |
changeset 71 | 243bbc1d70db |
parent 24 | a3f46bb01be2 |
permissions | -rw-r--r-- |
24 | 1 |
/* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 |
* |
|
3 |
* Permission is hereby granted, free of charge, to any person obtaining a |
|
4 |
* copy of this software and /or associated documentation files |
|
5 |
* (the "Materials "), to deal in the Materials without restriction, |
|
6 |
* including without limitation the rights to use, copy, modify, merge, |
|
7 |
* publish, distribute, sublicense, and/or sell copies of the Materials, |
|
8 |
* and to permit persons to whom the Materials are furnished to do so, |
|
9 |
* subject to the following conditions: |
|
10 |
* |
|
11 |
* The above copyright notice and this permission notice shall be included |
|
12 |
* in all copies or substantial portions of the Materials. |
|
13 |
* |
|
14 |
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
15 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
16 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|
17 |
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
|
18 |
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
|
19 |
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR |
|
20 |
* THE USE OR OTHER DEALINGS IN THE MATERIALS. |
|
21 |
* |
|
22 |
* Initial Contributors: |
|
23 |
* Nokia Corporation - initial contribution. |
|
24 |
* |
|
25 |
* Contributors: |
|
26 |
* |
|
27 |
* Description: |
|
28 |
* |
|
29 |
*/ |
|
30 |
||
31 |
#ifndef _EGLSTRUCTS_H_ |
|
32 |
#define _EGLSTRUCTS_H_ |
|
33 |
||
34 |
struct EGLIOsWindowContext |
|
35 |
{ |
|
36 |
EGLINativeWindowType window; |
|
37 |
EGLINativeDisplayType vgDisplay; |
|
38 |
EGLINativeDisplayType glesDisplay; |
|
39 |
EGLINativePixmapType pixmap; |
|
40 |
unsigned int* osBuffer; |
|
41 |
int width; |
|
42 |
int height; |
|
43 |
void* colorBuf; |
|
44 |
}; |
|
45 |
||
46 |
struct EGLINativeGLFunctions |
|
47 |
{ |
|
48 |
#if defined(_WIN32) |
|
49 |
// PBuffer |
|
50 |
PFNWGLMAKECONTEXTCURRENTARBPROC wglMakeContextCurrentARB; |
|
51 |
PFNWGLGETCURRENTREADDCARBPROC wglGetCurrentReadDCARB; |
|
52 |
PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB; |
|
53 |
PFNWGLCREATEPBUFFERARBPROC wglCreatePbufferARB; |
|
54 |
PFNWGLDESTROYPBUFFERARBPROC wglDestroyPbufferARB; |
|
55 |
PFNWGLGETPBUFFERDCARBPROC wglGetPbufferDCARB; |
|
56 |
PFNWGLRELEASEPBUFFERDCARBPROC wglReleasePbufferDCARB; |
|
57 |
PFNWGLQUERYPBUFFERARBPROC wglQueryPbufferARB; |
|
58 |
#else // Linux |
|
59 |
// \todo |
|
60 |
#endif |
|
61 |
}; |
|
62 |
||
63 |
struct EGLINativePbufferContainer |
|
64 |
{ |
|
65 |
EGLINativeContextType copyContext; |
|
66 |
EGLINativePbufferType pbuffer; |
|
67 |
EGLINativeDisplayType display; |
|
68 |
EGLINativeGLFunctions functions; |
|
69 |
}; |
|
70 |
||
71 |
struct EGLITextureBinding |
|
72 |
{ |
|
73 |
EGLint name; |
|
74 |
EGLint level; |
|
75 |
EGLint clientVersion; |
|
76 |
EGLContext context; |
|
77 |
}; |
|
78 |
||
20
d2d6724aef32
Initial contribution of Khronos API implmentations suitable for simulator host-side.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
79 |
#endif // _EGLSTRUCTS_H_ |