eglplatform.h

来自「6410BSP3」· C头文件 代码 · 共 58 行

H
58
字号
/* -*- mode: c; tab-width: 8; -*- *//* vi: set sw=4 ts=8: *//* Platform-specific types and definitions for egl.h */#ifndef __eglplatform_h_#define __eglplatform_h_/* Windows calling convention boilerplate */#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)#define WIN32_LEAN_AND_MEAN 1#include <windows.h>#endif/* Macros used in EGL function prototype declarations. * * EGLAPI return-type EGLAPIENTRY eglFunction(arguments); * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments); * * On Windows, EGLAPIENTRY can be defined like APIENTRY. * On most other platforms, it should be empty. */#ifndef EGLAPIENTRY#define EGLAPIENTRY#endif#ifndef EGLAPIENTRYP#define EGLAPIENTRYP EGLAPIENTRY *#endif#ifndef EGLAPI#define EGLAPI extern#endif/* The types NativeDisplayType, NativeWindowType, and NativePixmapType * are aliases of window-system-dependent types, such as X Display * or * Windows Device Context. They must be defined in platform-specific * code below. The EGL-prefixed versions of Native*Type are the same * types, renamed in EGL 1.3 so all types in the API start with "EGL". *//* Unix (tentative)    #include <X headers>    typedef Display *NativeDisplayType;      - or maybe, if encoding "hostname:display.head"    typedef const char *NativeWindowType;    etc. */typedef HDC     NativeDisplayType;typedef HWND    NativeWindowType;typedef HBITMAP NativePixmapType;/* EGL 1.2 types, renamed for consistency in EGL 1.3 */typedef NativeDisplayType EGLNativeDisplayType;typedef NativePixmapType EGLNativePixmapType;typedef NativeWindowType EGLNativeWindowType;#endif /* __eglplatform_h */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?