OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GL_GL_BINDINGS_H_ | 5 #ifndef UI_GL_GL_BINDINGS_H_ |
6 #define UI_GL_GL_BINDINGS_H_ | 6 #define UI_GL_GL_BINDINGS_H_ |
7 | 7 |
8 // Includes the platform independent and platform dependent GL headers. | 8 // Includes the platform independent and platform dependent GL headers. |
9 // Only include this in cc files. It pulls in system headers, including | 9 // Only include this in cc files. It pulls in system headers, including |
10 // the X11 headers on linux, which define all kinds of macros that are | 10 // the X11 headers on linux, which define all kinds of macros that are |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 #endif /* GL_KHR_robustness */ | 329 #endif /* GL_KHR_robustness */ |
330 | 330 |
331 #ifndef GL_EXT_texture_rg | 331 #ifndef GL_EXT_texture_rg |
332 #define GL_EXT_texture_rg 1 | 332 #define GL_EXT_texture_rg 1 |
333 #define GL_RED_EXT 0x1903 | 333 #define GL_RED_EXT 0x1903 |
334 #define GL_RG_EXT 0x8227 | 334 #define GL_RG_EXT 0x8227 |
335 #define GL_R8_EXT 0x8229 | 335 #define GL_R8_EXT 0x8229 |
336 #define GL_RG8_EXT 0x822B | 336 #define GL_RG8_EXT 0x822B |
337 #endif /* GL_EXT_texture_rg */ | 337 #endif /* GL_EXT_texture_rg */ |
338 | 338 |
339 // This is from NV_path_rendering, but the Mesa GL header is not up-to-date with | 339 // This is from NV_path_rendering, but the Mesa GL header is not up to date with |
340 // the most recent | 340 // the most recent |
341 // version of the extension. This definition could be removed once glext.h | 341 // version of the extension. This definition could be removed once glext.h |
342 // r27498 or later is | 342 // r27498 or later is |
343 // imported. | 343 // imported. |
344 #ifndef GL_FRAGMENT_INPUT_NV | 344 #ifndef GL_FRAGMENT_INPUT_NV |
345 #define GL_FRAGMENT_INPUT_NV 0x936D | 345 #define GL_FRAGMENT_INPUT_NV 0x936D |
346 #endif | 346 #endif |
347 | 347 |
348 #ifndef GL_EXT_blend_func_extended | 348 #ifndef GL_EXT_blend_func_extended |
349 #define GL_EXT_blend_func_extended 1 | 349 #define GL_EXT_blend_func_extended 1 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 #endif | 495 #endif |
496 | 496 |
497 #if defined(USE_GLX) | 497 #if defined(USE_GLX) |
498 GL_EXPORT extern GLXApi* g_current_glx_context; | 498 GL_EXPORT extern GLXApi* g_current_glx_context; |
499 GL_EXPORT extern DriverGLX g_driver_glx; | 499 GL_EXPORT extern DriverGLX g_driver_glx; |
500 #endif | 500 #endif |
501 | 501 |
502 } // namespace gl | 502 } // namespace gl |
503 | 503 |
504 #endif // UI_GL_GL_BINDINGS_H_ | 504 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |