1 /* $Change: 1028567 $ */
5 * @brief This is the header file for the eglplatform.
7 * This header file contains the declarations of the eglplatform.
10 #ifndef __eglplatform_h_
11 #define __eglplatform_h_
14 ** Copyright (c) 2007-2009 The Khronos Group Inc.
16 ** Permission is hereby granted, free of charge, to any person obtaining a
17 ** copy of this software and/or associated documentation files (the
18 ** "Materials"), to deal in the Materials without restriction, including
19 ** without limitation the rights to use, copy, modify, merge, publish,
20 ** distribute, sublicense, and/or sell copies of the Materials, and to
21 ** permit persons to whom the Materials are furnished to do so, subject to
22 ** the following conditions:
24 ** The above copyright notice and this permission notice shall be included
25 ** in all copies or substantial portions of the Materials.
27 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
28 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
29 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
30 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
31 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
32 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
33 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
36 /* Platform-specific types and definitions for egl.h
37 * $Revision: #1 $ on $Date: 2011/08/12 $
39 * Adopters may modify khrplatform.h and this file to suit their platform.
40 * You are encouraged to submit all modifications to the Khronos group so that
41 * they can be included in future versions of this file. Please submit changes
42 * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
43 * by filing a bug against product "EGL" component "Registry".
46 #ifdef _FGRAPHICS_OPENGL_H_
50 namespace Tizen { namespace Ui
55 namespace Tizen { namespace Graphics
61 #ifdef _FGRAPHICS_OPENGL_H_
62 namespace Tizen { namespace Graphics { namespace Opengl
67 #include "khrplatform.h"
70 /* Macros used in EGL function prototype declarations.
72 * EGL functions should be prototyped as:
74 * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
75 * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
77 * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
81 * @addtogroup opengles
91 #define EGLAPIENTRY __stdcall
98 #define EGLAPIENTRYP KHRONOS_APIENTRY*
100 ** Types and resources
103 /*! \var typedef int EGLint
104 \brief A type definition for EGLConfig.
109 typedef void* EGLNativeDisplayType;
110 class Tizen::Ui::Control;
111 typedef Tizen::Ui::Control* EGLNativeWindowType;
112 class Tizen::Graphics::Bitmap;
113 typedef Tizen::Graphics::Bitmap* EGLNativePixmapType;
115 #elif FEATURE_SYSLSI_S5PC110
116 typedef int EGLNativeDisplayType;
117 typedef void* EGLNativeWindowType;
125 NUEGL_PIXELFORMAT_565 = 0,
126 NUEGL_PIXELFORMAT_4444 = 1,
127 NUEGL_PIXELFORMAT_8888 = 2,
128 NUEGL_PIXELFORMAT_1555 = 3,
129 NUEGL_PIXELFORMAT_force_to_32_bits = 0x12345678
135 NUEGL_ROTATE_180 = 2,
136 NUEGL_ROTATE_270 = 3,
137 NUEGL_ROTATE_force_to_32_bits = 0x12345678
139 } sEGLNativePixmapType;
140 typedef sEGLNativePixmapType* EGLNativePixmapType;
143 /*! \var typedef void *EGLNativeDisplayType
144 \brief A type definition for EGLNativeDisplayType.
146 typedef void* EGLNativeDisplayType;
148 /*! \var typedef void *EGLNativeWindowType
149 \brief A type definition for EGLNativeWindowType.
151 typedef void* EGLNativeWindowType;
153 /*! \var typedef void *EGLNativePixmapType
154 \brief A type definition for EGLNativePixmapType.
156 typedef void* EGLNativePixmapType;
159 /*! \var typedef EGLNativeDisplayType NativeDisplayType
160 \brief A type definition for NativeDisplayType.
162 typedef EGLNativeDisplayType NativeDisplayType;
164 /*! \var typedef EGLNativePixmapType NativePixmapType
165 \brief A type definition for NativePixmapType.
167 typedef EGLNativePixmapType NativePixmapType;
169 /*! \var typedef EGLNativeWindowType NativeWindowType
170 \brief A type definition for NativeWindowType.
172 typedef EGLNativeWindowType NativeWindowType;
174 #include "egl_macro.h"
180 #endif /* __eglplatform_h_ */