OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef APP_GFX_GL_GL_IMPLEMENTATION_H_ |
| 6 #define APP_GFX_GL_GL_IMPLEMENTATION_H_ |
| 7 |
| 8 namespace gfx { |
| 9 |
| 10 // The GL implementation currently in use. |
| 11 enum GLImplementation { |
| 12 kGLImplementationNone, |
| 13 kGLImplementationDesktopGL, |
| 14 kGLImplementationOSMesaGL, |
| 15 kGLImplementationEGLGLES2, |
| 16 kGLImplementationMockGL |
| 17 }; |
| 18 |
| 19 // Initialize a particular GL implementation. |
| 20 bool InitializeGLBindings(GLImplementation implementation); |
| 21 |
| 22 // Get the current GL implementation. |
| 23 GLImplementation GetGLImplementation(); |
| 24 |
| 25 // Find an entry point in the current GL implementation. |
| 26 void* GetGLProcAddress(const char* name); |
| 27 |
| 28 } // namespace gfx |
| 29 |
| 30 #endif // APP_GFX_GL_GL_IMPLEMENTATION_H_ |
OLD | NEW |