diff options
author | Brian <[email protected]> | 2007-07-13 09:25:57 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-07-13 09:25:57 -0600 |
commit | 563479552e2f491fb94e7fac5772f3c72cee962a (patch) | |
tree | cc9d7617d45b14d3ff9e2b1517f64fd2b4079eeb /src/mesa/pipe/p_context.h | |
parent | 676fcf0de270651311a6b812e98f2e71d7dae925 (diff) |
Added basic occlusion counting
Diffstat (limited to 'src/mesa/pipe/p_context.h')
-rw-r--r-- | src/mesa/pipe/p_context.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/pipe/p_context.h b/src/mesa/pipe/p_context.h index e4115226e7e..05a175c8dc0 100644 --- a/src/mesa/pipe/p_context.h +++ b/src/mesa/pipe/p_context.h @@ -28,7 +28,9 @@ #ifndef PIPE_CONTEXT_H #define PIPE_CONTEXT_H -#include "mtypes.h" +#include "main/mtypes.h" +#include "p_state.h" + /* Kludge: */ @@ -57,6 +59,12 @@ struct pipe_context { void (*clear)(struct pipe_context *pipe, GLboolean color, GLboolean depth, GLboolean stencil, GLboolean accum); + /** occlusion counting (XXX this may be temporary - we should probably + * have generic query objects with begin/end methods) + */ + void (*reset_occlusion_counter)(struct pipe_context *pipe); + GLuint (*get_occlusion_counter)(struct pipe_context *pipe); + /* * State functions */ |