summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/gles2_lib.h
blob: 799cd4e4fc7248f4043d700fccd4ed5c2f78eb71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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_