• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 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 MOJO_PUBLIC_GLES2_GLES2_H_
6 #define MOJO_PUBLIC_GLES2_GLES2_H_
7 
8 // Note: This header should be compilable as C.
9 
10 #include <stdint.h>
11 
12 #if defined(WIN32)
13 
14 #if defined(MOJO_GLES2_IMPLEMENTATION)
15 #define MOJO_GLES2_EXPORT __declspec(dllexport)
16 #else
17 #define MOJO_GLES2_EXPORT __declspec(dllimport)
18 #endif
19 
20 #else  // !defined(WIN32)
21 
22 #if defined(MOJO_GLES2_IMPLEMENTATION)
23 #define MOJO_GLES2_EXPORT __attribute__((visibility("default")))
24 #else
25 #define MOJO_GLES2_EXPORT
26 #endif
27 
28 #endif  // defined(WIN32)
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 MOJO_GLES2_EXPORT void MojoGLES2Initialize();
35 MOJO_GLES2_EXPORT void MojoGLES2Terminate();
36 // TODO(abarth): MojoGLES2MakeCurrent should take a MojoHandle.
37 MOJO_GLES2_EXPORT void MojoGLES2MakeCurrent(uint64_t encoded);
38 MOJO_GLES2_EXPORT void MojoGLES2SwapBuffers();
39 
40 #ifdef __cplusplus
41 }  // extern "C"
42 #endif
43 
44 #endif  // MOJO_PUBLIC_GLES2_GLES2_H_
45