| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
| 11 #include "gl/GrGLInterface.h" | 11 #include "gl/GrGLInterface.h" |
| 12 #include "gl/GrGLUtil.h" | 12 #include "gl/GrGLUtil.h" |
| 13 #define WIN32_LEAN_AND_MEAN | 13 #define WIN32_LEAN_AND_MEAN |
| 14 #include <Windows.h> | 14 #include <windows.h> |
| 15 | 15 |
| 16 /* | 16 /* |
| 17 * Windows makes the GL funcs all be __stdcall instead of __cdecl :( | 17 * Windows makes the GL funcs all be __stdcall instead of __cdecl :( |
| 18 * This implementation will only work if GR_GL_FUNCTION_TYPE is __stdcall. | 18 * This implementation will only work if GR_GL_FUNCTION_TYPE is __stdcall. |
| 19 * Otherwise, a springboard would be needed that hides the calling convention. | 19 * Otherwise, a springboard would be needed that hides the calling convention. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #define SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) GetProcAddress(alu.g
et(), "gl" #F); | 22 #define SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) GetProcAddress(alu.g
et(), "gl" #F); |
| 23 #define WGL_SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) wglGetProcAddres
s("gl" #F); | 23 #define WGL_SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) wglGetProcAddres
s("gl" #F); |
| 24 #define WGL_SET_PROC_SUFFIX(F, S) interface->f ## F = \ | 24 #define WGL_SET_PROC_SUFFIX(F, S) interface->f ## F = \ |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); | 311 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); |
| 312 } | 312 } |
| 313 | 313 |
| 314 interface->fBindingsExported = kDesktop_GrGLBinding; | 314 interface->fBindingsExported = kDesktop_GrGLBinding; |
| 315 | 315 |
| 316 return interface; | 316 return interface; |
| 317 } else { | 317 } else { |
| 318 return NULL; | 318 return NULL; |
| 319 } | 319 } |
| 320 } | 320 } |
| OLD | NEW |