00001 //======================================================================== 00002 // GLFW 3.1 Win32 - www.glfw.org 00003 //------------------------------------------------------------------------ 00004 // Copyright (c) 2002-2006 Marcus Geelnard 00005 // Copyright (c) 2006-2010 Camilla Berglund <elmindreda@elmindreda.org> 00006 // 00007 // This software is provided 'as-is', without any express or implied 00008 // warranty. In no event will the authors be held liable for any damages 00009 // arising from the use of this software. 00010 // 00011 // Permission is granted to anyone to use this software for any purpose, 00012 // including commercial applications, and to alter it and redistribute it 00013 // freely, subject to the following restrictions: 00014 // 00015 // 1. The origin of this software must not be misrepresented; you must not 00016 // claim that you wrote the original software. If you use this software 00017 // in a product, an acknowledgment in the product documentation would 00018 // be appreciated but is not required. 00019 // 00020 // 2. Altered source versions must be plainly marked as such, and must not 00021 // be misrepresented as being the original software. 00022 // 00023 // 3. This notice may not be removed or altered from any source 00024 // distribution. 00025 // 00026 //======================================================================== 00027 00028 #ifndef _glfw3_win32_tls_h_ 00029 #define _glfw3_win32_tls_h_ 00030 00031 #define _GLFW_PLATFORM_LIBRARY_TLS_STATE _GLFWtlsWin32 win32_tls 00032 00033 00034 // Win32-specific global TLS data 00035 // 00036 typedef struct _GLFWtlsWin32 00037 { 00038 GLboolean allocated; 00039 DWORD context; 00040 00041 } _GLFWtlsWin32; 00042 00043 00044 int _glfwCreateContextTLS(void); 00045 void _glfwDestroyContextTLS(void); 00046 void _glfwSetContextTLS(_GLFWwindow* context); 00047 00048 #endif // _glfw3_win32_tls_h_