diff options
Diffstat (limited to 'gpu/command_buffer/client/gles2_lib.h')
-rw-r--r-- | gpu/command_buffer/client/gles2_lib.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/gles2_lib.h b/gpu/command_buffer/client/gles2_lib.h new file mode 100644 index 0000000..589d2050 --- /dev/null +++ b/gpu/command_buffer/client/gles2_lib.h @@ -0,0 +1,26 @@ +// Copyright (c) 2006-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 "gpu/command_buffer/client/gles2_implementation.h" + +namespace gles2 { + +extern ::command_buffer::gles2::GLES2Implementation* g_gl_impl; + +inline ::command_buffer::gles2::GLES2Implementation* GetGLContext() { + return g_gl_impl; +} + +// Initializes the GLES2 library. +bool InitGLES2Lib(); + +} // namespace gles2 + +#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H + |