| // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // These functions emluate GLES2 over command buffers. |
| |
| #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ |
| #define GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ |
| |
| #include "../client/gles2_implementation.h" |
| |
| namespace gles2 { |
| |
| // Initialize the GLES2 library. |
| void Initialize(); |
| |
| // Terminate the GLES2 library. |
| void Terminate(); |
| |
| // Get the current GL context. |
| gpu::gles2::GLES2Implementation* GetGLContext(); |
| |
| // Set the current GL context. |
| void SetGLContext(gpu::gles2::GLES2Implementation* impl); |
| |
| } // namespace gles2 |
| |
| #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ |