aboutsummaryrefslogtreecommitdiffstats
path: root/progs/perf/glmain.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-09-21 16:55:12 +0100
committerKeith Whitwell <[email protected]>2009-09-22 11:21:09 +0100
commita7b2659f02c503bd2110b9fd9799efc113807ad9 (patch)
tree89a8997e2737df8739a258d4ef70f2438939524b /progs/perf/glmain.h
parent94a020cfe6cb1da04695897eed38b530af31f524 (diff)
progs/perf: add first attempt at a swapbuffers rate test
This is pretty ugly as the original framework assumed you'd set a single window size at startup and keep it throughout, but for swapbuffers you want to test the rate at various window sizes. With luck a nicer solution can be found, but this at least lays out a marker.
Diffstat (limited to 'progs/perf/glmain.h')
-rw-r--r--progs/perf/glmain.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/perf/glmain.h b/progs/perf/glmain.h
index 91f2eb3e74e..ccfd289880d 100644
--- a/progs/perf/glmain.h
+++ b/progs/perf/glmain.h
@@ -46,6 +46,9 @@ PerfCheckerTexture(GLsizei width, GLsizei height);
extern GLuint
PerfShaderProgram(const char *vertShader, const char *fragShader);
+extern int
+PerfReshapeWindow( unsigned w, unsigned h );
+
/** Test programs must implement these functions **/
@@ -53,6 +56,9 @@ extern void
PerfInit(void);
extern void
+PerfNextRound(void);
+
+extern void
PerfDraw(void);