OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 #ifndef BENCH_GL_MAIN_H_ | 5 #ifndef BENCH_GL_MAIN_H_ |
6 #define BENCH_GL_MAIN_H_ | 6 #define BENCH_GL_MAIN_H_ |
7 | 7 |
8 #include <gflags/gflags.h> | 8 #include <gflags/gflags.h> |
9 #include <sys/time.h> | 9 #include <sys/time.h> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 F(glGetAttribLocation, PFNGLGETATTRIBLOCATIONPROC) \ | 30 F(glGetAttribLocation, PFNGLGETATTRIBLOCATIONPROC) \ |
31 F(glGetInfoLogARB, PFNGLGETPROGRAMINFOLOGPROC) \ | 31 F(glGetInfoLogARB, PFNGLGETPROGRAMINFOLOGPROC) \ |
32 F(glGetProgramInfoLog, PFNGLGETPROGRAMINFOLOGPROC) \ | 32 F(glGetProgramInfoLog, PFNGLGETPROGRAMINFOLOGPROC) \ |
33 F(glGetShaderInfoLog, PFNGLGETSHADERINFOLOGPROC) \ | 33 F(glGetShaderInfoLog, PFNGLGETSHADERINFOLOGPROC) \ |
34 F(glGetUniformLocation, PFNGLGETUNIFORMLOCATIONPROC) \ | 34 F(glGetUniformLocation, PFNGLGETUNIFORMLOCATIONPROC) \ |
35 F(glLinkProgram, PFNGLLINKPROGRAMPROC) \ | 35 F(glLinkProgram, PFNGLLINKPROGRAMPROC) \ |
36 F(glShaderSource, PFNGLSHADERSOURCEPROC) \ | 36 F(glShaderSource, PFNGLSHADERSOURCEPROC) \ |
37 F(glUniform1f, PFNGLUNIFORM1FPROC) \ | 37 F(glUniform1f, PFNGLUNIFORM1FPROC) \ |
38 F(glUniform1i, PFNGLUNIFORM1IPROC) \ | 38 F(glUniform1i, PFNGLUNIFORM1IPROC) \ |
39 F(glUniform4fv, PFNGLUNIFORM4FVPROC) \ | 39 F(glUniform4fv, PFNGLUNIFORM4FVPROC) \ |
| 40 F(glUniformMatrix4fv, PFNGLUNIFORMMATRIX4FVPROC) \ |
40 F(glUseProgram, PFNGLUSEPROGRAMPROC) \ | 41 F(glUseProgram, PFNGLUSEPROGRAMPROC) \ |
41 F(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC) \ | 42 F(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC) \ |
42 F(glXSwapIntervalSGI, PFNGLXSWAPINTERVALSGIPROC) \ | 43 F(glXSwapIntervalSGI, PFNGLXSWAPINTERVALSGIPROC) \ |
43 F(glXBindTexImageEXT, PFNGLXBINDTEXIMAGEEXTPROC) \ | 44 F(glXBindTexImageEXT, PFNGLXBINDTEXIMAGEEXTPROC) \ |
44 F(glXReleaseTexImageEXT, PFNGLXRELEASETEXIMAGEEXTPROC) | 45 F(glXReleaseTexImageEXT, PFNGLXRELEASETEXIMAGEEXTPROC) |
45 | 46 |
46 #define F(fun, type) extern type fun; | 47 #define F(fun, type) extern type fun; |
47 LIST_PROC_FUNCTIONS(F) | 48 LIST_PROC_FUNCTIONS(F) |
48 #undef F | 49 #undef F |
49 | 50 |
(...skipping 17 matching lines...) Expand all Loading... |
67 void DestroyContext(); | 68 void DestroyContext(); |
68 void SwapBuffers(); | 69 void SwapBuffers(); |
69 bool SwapInterval(int interval); | 70 bool SwapInterval(int interval); |
70 | 71 |
71 // This size is for a window that is very large but will fit on all | 72 // This size is for a window that is very large but will fit on all |
72 // the displays we care about. | 73 // the displays we care about. |
73 #define WINDOW_WIDTH 512 | 74 #define WINDOW_WIDTH 512 |
74 #define WINDOW_HEIGHT 512 | 75 #define WINDOW_HEIGHT 512 |
75 | 76 |
76 #endif // BENCH_GL_MAIN_H_ | 77 #endif // BENCH_GL_MAIN_H_ |
OLD | NEW |