diff options
author | Brian <[email protected]> | 2007-09-11 16:01:17 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-09-11 16:01:17 -0600 |
commit | 09fbb3837b6aa5dfc6c94f41ab5443820177c569 (patch) | |
tree | 760ff57ac6a5fc503c41e9eb783fb82cb5a428e6 /src/mesa/main/queryobj.h | |
parent | 5620d66e362acff99dbc748feec1da1e0f997288 (diff) |
Implement query object interface.
This replaces the temporary occlusion counter functions we had before.
Added new ctx->Driver.WaitQuery() function which should block until the result is ready.
Sketch out some code for vertex transformation feedback counters.
Diffstat (limited to 'src/mesa/main/queryobj.h')
-rw-r--r-- | src/mesa/main/queryobj.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mesa/main/queryobj.h b/src/mesa/main/queryobj.h index ada8cf83560..d466aae6520 100644 --- a/src/mesa/main/queryobj.h +++ b/src/mesa/main/queryobj.h @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 6.5 + * Version: 7.1 * - * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -36,6 +36,16 @@ _mesa_init_query(GLcontext *ctx); extern void _mesa_free_query_data(GLcontext *ctx); +extern void +_mesa_begin_query(GLcontext *ctx, struct gl_query_object *q); + +extern void +_mesa_end_query(GLcontext *ctx, struct gl_query_object *q); + +extern void +_mesa_wait_query(GLcontext *ctx, struct gl_query_object *q); + + extern void GLAPIENTRY _mesa_GenQueriesARB(GLsizei n, GLuint *ids); |