1e52adb7bSmrg/* 2e52adb7bSmrg * Copyright © 2013 Intel Corporation 3e52adb7bSmrg * 4e52adb7bSmrg * Permission is hereby granted, free of charge, to any person obtaining a 5e52adb7bSmrg * copy of this software and associated documentation files (the "Software"), 6e52adb7bSmrg * to deal in the Software without restriction, including without limitation 7e52adb7bSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8e52adb7bSmrg * and/or sell copies of the Software, and to permit persons to whom the 9e52adb7bSmrg * Software is furnished to do so, subject to the following conditions: 10e52adb7bSmrg * 11e52adb7bSmrg * The above copyright notice and this permission notice (including the next 12e52adb7bSmrg * paragraph) shall be included in all copies or substantial portions of the 13e52adb7bSmrg * Software. 14e52adb7bSmrg * 15e52adb7bSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16e52adb7bSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17e52adb7bSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18e52adb7bSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19e52adb7bSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20e52adb7bSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21e52adb7bSmrg * IN THE SOFTWARE. 22e52adb7bSmrg */ 23e52adb7bSmrg 24e52adb7bSmrg/** @file wgl.h 25e52adb7bSmrg * 26e52adb7bSmrg * Provides an implementation of a WGL dispatch layer using a hidden 27e52adb7bSmrg * vtable. 28e52adb7bSmrg */ 29e52adb7bSmrg 30e52adb7bSmrg#ifndef EPOXY_WGL_H 31e52adb7bSmrg#define EPOXY_WGL_H 32e52adb7bSmrg 33e52adb7bSmrg#include <windows.h> 34e52adb7bSmrg 35f71742dfSmrg#include "epoxy/common.h" 36f71742dfSmrg 37e52adb7bSmrg#undef wglUseFontBitmaps 38e52adb7bSmrg#undef wglUseFontOutlines 39e52adb7bSmrg 40e52adb7bSmrg#if defined(__wglxext_h_) 41e52adb7bSmrg#error epoxy/wgl.h must be included before (or in place of) wgl.h 42e52adb7bSmrg#else 43e52adb7bSmrg#define __wglxext_h_ 44e52adb7bSmrg#endif 45e52adb7bSmrg 46e52adb7bSmrg#ifdef UNICODE 47e52adb7bSmrg#define wglUseFontBitmaps wglUseFontBitmapsW 48e52adb7bSmrg#else 49e52adb7bSmrg#define wglUseFontBitmaps wglUseFontBitmapsA 50e52adb7bSmrg#endif 51e52adb7bSmrg 52f71742dfSmrgEPOXY_BEGIN_DECLS 53f71742dfSmrg 54e52adb7bSmrg#include "epoxy/wgl_generated.h" 55e52adb7bSmrg 56f71742dfSmrgEPOXY_PUBLIC bool epoxy_has_wgl_extension(HDC hdc, const char *extension); 57f71742dfSmrgEPOXY_PUBLIC void epoxy_handle_external_wglMakeCurrent(void); 58e52adb7bSmrg 59f71742dfSmrgEPOXY_END_DECLS 60e52adb7bSmrg 61e52adb7bSmrg#endif /* EPOXY_WGL_H */ 62