summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/gles2_lib.h
blob: c6425825f04524832d1299235be5479284e85390 (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
// 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 ::gpu::gles2::GLES2Implementation* g_gl_impl;

inline ::gpu::gles2::GLES2Implementation* GetGLContext() {
  return g_gl_impl;
}

// Initializes the GLES2 library.
bool InitGLES2Lib();

}  // namespace gles2

#endif  // GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_