Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: gpu/demos/app_framework/gles2_utils.h

Issue 525070: Resubmit 35500: Added an application framework for demos. Ported hellotriangl... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/demos/app_framework/application.cc ('k') | gpu/demos/app_framework/gles2_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2006-2009 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 // Utility OpenGL ES 2.0 functions.
6
7 #ifndef GPU_DEMOS_APP_FRAMEWORK_GLES2_UTILS_H_
8 #define GPU_DEMOS_APP_FRAMEWORK_GLES2_UTILS_H_
9
10 #include <GLES2/gl2.h>
11
12 namespace gpu_demos {
13 namespace gles2_utils {
14
15 // Uploads and compiles shader source. Returns non-zero shader object id.
16 // Returns 0 if an error occurs creating or compiling the shader object.
17 // All errors are logged.
18 extern GLuint LoadShader(GLenum type, const char* shader_src);
19
20 // Uploads, compiles, and links shader program. Returns non-zero program id.
21 // Returns 0 if an error occurs creating, compiling, or linking the program
22 // object. All errors are logged.
23 extern GLuint LoadProgram(const char* v_shader_src, const char* f_shader_src);
24
25 } // namespace gles2_utils
26 } // namespace gpu_demos
27 #endif // GPU_DEMOS_APP_FRAMEWORK_GLES2_UTILS_H_
OLDNEW
« no previous file with comments | « gpu/demos/app_framework/application.cc ('k') | gpu/demos/app_framework/gles2_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698