Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
gobj
occlusionQueryContext.h
1
// Filename: occlusionQueryContext.h
2
// Created by: drose (27Mar06)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef OCCLUSIONQUERYCONTEXT_H
16
#define OCCLUSIONQUERYCONTEXT_H
17
18
#include "pandabase.h"
19
#include "queryContext.h"
20
21
////////////////////////////////////////////////////////////////////
22
// Class : OcclusionQueryContext
23
// Description : Returned from a GSG in response to
24
// begin_occlusion_query() .. end_occlusion_query(),
25
// this records the number of fragments (pixels) that
26
// passed the depth test between the bracketing calls.
27
////////////////////////////////////////////////////////////////////
28
class
EXPCL_PANDA_GOBJ
OcclusionQueryContext
:
public
QueryContext
{
29
public
:
30
INLINE
OcclusionQueryContext
();
31
32
virtual
int
get_num_fragments()
const
=0;
33
34
public
:
35
static
TypeHandle
get_class_type() {
36
return
_type_handle;
37
}
38
static
void
init_type() {
39
QueryContext::init_type();
40
register_type(_type_handle,
"OcclusionQueryContext"
,
41
QueryContext::get_class_type());
42
}
43
virtual
TypeHandle
get_type()
const
{
44
return
get_class_type();
45
}
46
virtual
TypeHandle
force_init_type() {init_type();
return
get_class_type();}
47
48
private
:
49
static
TypeHandle
_type_handle;
50
51
friend
class
PreparedGraphicsObjects
;
52
};
53
54
#include "occlusionQueryContext.I"
55
56
#endif
57
PreparedGraphicsObjects
A table of objects that are saved within the graphics context for reference by handle later...
Definition:
preparedGraphicsObjects.h:60
QueryContext
This is a base class for queries that might require a round-trip to the graphics engine.
Definition:
queryContext.h:38
OcclusionQueryContext
Returned from a GSG in response to begin_occlusion_query() .
Definition:
occlusionQueryContext.h:28
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:85
Generated on Mon Feb 1 2016 13:44:27 for Panda3D by
1.8.5