OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is here so other GLES2 related files can have a common set of | 5 // This file is here so other GLES2 related files can have a common set of |
6 // includes where appropriate. | 6 // includes where appropriate. |
7 | 7 |
| 8 #include <GLES2/gl2.h> |
| 9 |
8 #include "../common/gles2_cmd_utils.h" | 10 #include "../common/gles2_cmd_utils.h" |
9 #include "../common/gles2_cmd_format.h" | 11 #include "../common/gles2_cmd_format.h" |
10 | 12 |
11 namespace gpu { | 13 namespace gpu { |
12 namespace gles2 { | 14 namespace gles2 { |
13 | 15 |
14 namespace gl_error_bit { | 16 namespace gl_error_bit { |
15 enum GLErrorBit { | 17 enum GLErrorBit { |
16 kNoError = 0, | 18 kNoError = 0, |
17 kInvalidEnum = (1 << 0), | 19 kInvalidEnum = (1 << 0), |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, | 480 GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, |
479 GL_TEXTURE_CUBE_MAP_POSITIVE_Z, | 481 GL_TEXTURE_CUBE_MAP_POSITIVE_Z, |
480 GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, | 482 GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, |
481 }; | 483 }; |
482 return faces[index]; | 484 return faces[index]; |
483 } | 485 } |
484 | 486 |
485 } // namespace gles2 | 487 } // namespace gles2 |
486 } // namespace gpu | 488 } // namespace gpu |
487 | 489 |
OLD | NEW |