1 // 2 // Copyright 2015 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // wgl_utils.h: Utility routines specific to the WGL->EGL implementation. 8 9 #ifndef LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_ 10 #define LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_ 11 12 #include <vector> 13 14 #include "common/platform.h" 15 16 namespace rx 17 { 18 19 class FunctionsWGL; 20 21 namespace wgl 22 { 23 24 PIXELFORMATDESCRIPTOR GetDefaultPixelFormatDescriptor(); 25 std::vector<int> GetDefaultPixelFormatAttributes(bool preservedSwap); 26 27 int QueryWGLFormatAttrib(HDC dc, int format, int attribName, const FunctionsWGL *functions); 28 } // namespace wgl 29 30 } // namespace rx 31 32 #endif // LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_ 33