open_gl.h 588 字节
Newer Older
1 2 3 4
// Copyright 2016 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.

5 6
#ifndef FLUTTER_FLOW_OPEN_GL_H_
#define FLUTTER_FLOW_OPEN_GL_H_
7

A
Adam Barth 已提交
8
#include "lib/ftl/build_config.h"
9

10
#if defined(OS_IOS)
11 12 13

#include <OpenGLES/ES2/gl.h>

14
#elif defined(OS_MACOSX)
15 16 17

#include <OpenGL/gl.h>

18
#elif defined(OS_ANDROID) || defined(OS_FUCHSIA)
19 20 21

#include <GLES2/gl2.h>

22
#elif defined(OS_LINUX)
23 24 25

#include <GL/gl.h>

26 27 28 29 30 31
#else

#error OpenGL headers not found for this platform.

#endif

32
#endif  // FLUTTER_FLOW_OPEN_GL_H_