OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
| 11 #import <Foundation/Foundation.h> |
| 12 |
11 #if TARGET_OS_IPHONE | 13 #if TARGET_OS_IPHONE |
12 #define RTC_PIXEL_FORMAT GL_LUMINANCE | 14 #define RTC_PIXEL_FORMAT GL_LUMINANCE |
13 #define SHADER_VERSION | 15 #define SHADER_VERSION |
14 #define VERTEX_SHADER_IN "attribute" | 16 #define VERTEX_SHADER_IN "attribute" |
15 #define VERTEX_SHADER_OUT "varying" | 17 #define VERTEX_SHADER_OUT "varying" |
16 #define FRAGMENT_SHADER_IN "varying" | 18 #define FRAGMENT_SHADER_IN "varying" |
17 #define FRAGMENT_SHADER_OUT | 19 #define FRAGMENT_SHADER_OUT |
18 #define FRAGMENT_SHADER_COLOR "gl_FragColor" | 20 #define FRAGMENT_SHADER_COLOR "gl_FragColor" |
19 #define FRAGMENT_SHADER_TEXTURE "texture2D" | 21 #define FRAGMENT_SHADER_TEXTURE "texture2D" |
20 | 22 |
21 @class EAGLContext; | 23 @class EAGLContext; |
22 typedef EAGLContext GlContextType; | 24 typedef EAGLContext GlContextType; |
23 #else | 25 #else |
24 #define RTC_PIXEL_FORMAT GL_RED | 26 #define RTC_PIXEL_FORMAT GL_RED |
25 #define SHADER_VERSION "#version 150\n" | 27 #define SHADER_VERSION "#version 150\n" |
26 #define VERTEX_SHADER_IN "in" | 28 #define VERTEX_SHADER_IN "in" |
27 #define VERTEX_SHADER_OUT "out" | 29 #define VERTEX_SHADER_OUT "out" |
28 #define FRAGMENT_SHADER_IN "in" | 30 #define FRAGMENT_SHADER_IN "in" |
29 #define FRAGMENT_SHADER_OUT "out vec4 fragColor;\n" | 31 #define FRAGMENT_SHADER_OUT "out vec4 fragColor;\n" |
30 #define FRAGMENT_SHADER_COLOR "fragColor" | 32 #define FRAGMENT_SHADER_COLOR "fragColor" |
31 #define FRAGMENT_SHADER_TEXTURE "texture" | 33 #define FRAGMENT_SHADER_TEXTURE "texture" |
32 | 34 |
33 @class NSOpenGLContext; | 35 @class NSOpenGLContext; |
34 typedef NSOpenGLContext GlContextType; | 36 typedef NSOpenGLContext GlContextType; |
35 #endif | 37 #endif |
OLD | NEW |