open_gl.h 529 字节
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 11 12 13 14 15 16 17 18 19 20 21

#if OS_IOS

#include <OpenGLES/ES2/gl.h>

#elif OS_MACOSX

#include <OpenGL/gl.h>

#elif OS_ANDROID

#include <GLES2/gl2.h>

22 23 24 25
#elif OS_LINUX

#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_