blob: 0f1df36c7a45edfb7d8672f651dff89e24dde835 [file] [log] [blame]
[email protected]b9363b22010-06-09 22:06:151// 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
8namespace gfx {
9
10// The GL implementation currently in use.
11enum GLImplementation {
12 kGLImplementationNone,
13 kGLImplementationDesktopGL,
14 kGLImplementationOSMesaGL,
15 kGLImplementationEGLGLES2,
16 kGLImplementationMockGL
17};
18
19// Initialize a particular GL implementation.
20bool InitializeGLBindings(GLImplementation implementation);
21
22// Get the current GL implementation.
23GLImplementation GetGLImplementation();
24
25// Find an entry point in the current GL implementation.
26void* GetGLProcAddress(const char* name);
27
28} // namespace gfx
29
30#endif // APP_GFX_GL_GL_IMPLEMENTATION_H_