diff options
author | Kenneth Russel <[email protected]> | 2009-06-15 22:57:38 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-15 22:57:38 +0000 |
commit | a959c53b7ac91e489bf0959391e892790b9ff248 (patch) | |
tree | 4664742a4f9f6daa694364292e376ad2e6ee97d1 /make/stub_includes/egl/EGL/eglplatform.h | |
parent | 506b634b780dcd23aa61015c2ceba3e687196abf (diff) |
Copied JOGL_2_SANDBOX r1957 on to trunk; JOGL_2_SANDBOX branch is now closed
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1959 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/stub_includes/egl/EGL/eglplatform.h')
-rwxr-xr-x | make/stub_includes/egl/EGL/eglplatform.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/make/stub_includes/egl/EGL/eglplatform.h b/make/stub_includes/egl/EGL/eglplatform.h new file mode 100755 index 000000000..f763d98e3 --- /dev/null +++ b/make/stub_includes/egl/EGL/eglplatform.h @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2007 NVIDIA Corporation. All rights reserved. + * + * NVIDIA Corporation and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA Corporation is strictly prohibited. + */ + +#ifndef EGLPLATFORM_H +#define EGLPLATFORM_H + +/* +** eglplatform.h is platform dependent. It defines: +** +** - Native types +** - EGL and native handle values +** +** EGLNativeDisplayType, EGLNativeWindowType and EGLNativePixmapType are to be +** replaced with corresponding types of the native window system in egl.h. +** +** EGL and native handle values must match their types. +*/ + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined(_WIN32) && !defined(__GNUC__) + typedef signed __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef signed __int64 int64_t; + typedef unsigned __int64 uint64_t; +#else + #include <stdint.h> +#endif + +// Define storage class specifiers +#ifndef APIENTRY +#define APIENTRY +#endif + +#ifndef EGLAPIENTRY +#define EGLAPIENTRY +#endif +#ifndef EGLAPIENTRYP +#define EGLAPIENTRYP EGLAPIENTRY * +#endif + +#define EGLAPI + +// Define native window system types +typedef int EGLNativeDisplayType; +typedef void* EGLNativePointerType; +typedef void* EGLNativeWindowType; +typedef void* EGLNativePixmapType; + +// Define 64-bit integer extensions +typedef int64_t EGLint64NV; +typedef uint64_t EGLuint64NV; + +// Define the pre-EGL 1.3 Native handle types for backwards compatibility +typedef EGLNativeDisplayType NativeDisplayType; +typedef EGLNativePixmapType NativePixmapType; +typedef EGLNativeWindowType NativeWindowType; + +#ifdef __cplusplus +} +#endif + +#endif /* EGLPLATFORM_H */ |