1 | <html> |
---|
2 | <head> |
---|
3 | <title>Ogre::GLHardwareOcclusionQuery class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body> |
---|
8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
9 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
10 | <h1>Ogre::GLHardwareOcclusionQuery Class Reference</h1>This is a class that is the base class of the query class for hardware occlusion. |
---|
11 | <a href="#_details">More...</a> |
---|
12 | <p> |
---|
13 | <code>#include <<a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>></code> |
---|
14 | <p> |
---|
15 | <p>Inheritance diagram for Ogre::GLHardwareOcclusionQuery: |
---|
16 | <p><center><img src="classOgre_1_1GLHardwareOcclusionQuery.png" usemap="#Ogre::GLHardwareOcclusionQuery_map" border="0" alt=""></center> |
---|
17 | <map name="Ogre::GLHardwareOcclusionQuery_map"> |
---|
18 | <area href="classOgre_1_1HardwareOcclusionQuery.html" alt="Ogre::HardwareOcclusionQuery" shape="rect" coords="0,0,212,24"> |
---|
19 | </map> |
---|
20 | <a href="classOgre_1_1GLHardwareOcclusionQuery-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> |
---|
21 | <tr><td></td></tr> |
---|
22 | <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> |
---|
23 | <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya0">GLHardwareOcclusionQuery</a> ()</td></tr> |
---|
24 | |
---|
25 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default object constructor. <a href="#Ogre_1_1GLHardwareOcclusionQuerya0"></a><br><br></td></tr> |
---|
26 | <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya1">~GLHardwareOcclusionQuery</a> ()</td></tr> |
---|
27 | |
---|
28 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Object destructor. <a href="#Ogre_1_1GLHardwareOcclusionQuerya1"></a><br><br></td></tr> |
---|
29 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya2">beginOcclusionQuery</a> ()</td></tr> |
---|
30 | |
---|
31 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Starts the hardware occlusion query Simple usage: Create one or more OcclusionQuery object one per outstanding query or one per tested object OcclusionQuery* m_pOcclusionQuery; createOcclusionQuery( &m_pOcclusionQuery ); In the rendering loop: Draw all occluders m_pOcclusionQuery->startOcclusionQuery(); Draw the polygons to be tested m_pOcclusionQuery-><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya3">endOcclusionQuery()</a>;. <a href="#Ogre_1_1GLHardwareOcclusionQuerya2"></a><br><br></td></tr> |
---|
32 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya3">endOcclusionQuery</a> ()</td></tr> |
---|
33 | |
---|
34 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Ends the hardware occlusion test. <a href="#Ogre_1_1GLHardwareOcclusionQuerya3"></a><br><br></td></tr> |
---|
35 | <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya4">pullOcclusionQuery</a> (unsigned int *NumOfFragments, const <a class="el" href="namespaceOgre.html#a138">HW_OCCLUSIONQUERY</a> flag)</td></tr> |
---|
36 | |
---|
37 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Pulls the hardware occlusion query too see if there is a result. <a href="#Ogre_1_1GLHardwareOcclusionQuerya4"></a><br><br></td></tr> |
---|
38 | <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya5">getLastQuerysPixelcount</a> ()</td></tr> |
---|
39 | |
---|
40 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Let's you get the last pixel count with out doing the hardware occlusion test. <a href="#Ogre_1_1GLHardwareOcclusionQuerya5"></a><br><br></td></tr> |
---|
41 | <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya6">isStillOutstanding</a> (void)</td></tr> |
---|
42 | |
---|
43 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya7">setSkipRate</a> (int skip)</td></tr> |
---|
44 | |
---|
45 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Remarks This function allows you to set how often the hardware occlusion really sent to the driver if you set it to 0 every hardware occlusion test is actually made. <a href="#Ogre_1_1GLHardwareOcclusionQuerya7"></a><br><br></td></tr> |
---|
46 | <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya8">getSkipRate</a> ()</td></tr> |
---|
47 | |
---|
48 | <tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HardwareOcclusionQuery.html#Ogre_1_1HardwareOcclusionQuerya6">HardwareOcclusionQuery::isStillOutstanding</a> (void)=0</td></tr> |
---|
49 | |
---|
50 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Lets you know when query is done, or still be processed by the Hardware. <a href="#Ogre_1_1HardwareOcclusionQuerya6"></a><br><br></td></tr> |
---|
51 | <tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> |
---|
52 | <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp0">mPixelCount</a></td></tr> |
---|
53 | |
---|
54 | <tr><td class="memItemLeft" nowrap align=right valign=top>GLuint </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp1">mQueryID</a></td></tr> |
---|
55 | |
---|
56 | <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp2">m_bOcclusionQuery</a></td></tr> |
---|
57 | |
---|
58 | <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp3">mSkipCounter</a></td></tr> |
---|
59 | |
---|
60 | <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp4">mSkipInterval</a></td></tr> |
---|
61 | |
---|
62 | <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp5">mHasOcclusionSupport</a></td></tr> |
---|
63 | |
---|
64 | </table> |
---|
65 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
66 | This is a class that is the base class of the query class for hardware occlusion. |
---|
67 | <p> |
---|
68 | <dl compact><dt><b>Author:</b></dt><dd>Lee Sandberg email: <a href="mailto:lee@abcmedia.se">lee@abcmedia.se</a> Updated on 4/8/2005 by Tuan Kuranes email: <a href="mailto:tuan.kuranes@free.fr">tuan.kuranes@free.fr</a> </dd></dl> |
---|
69 | |
---|
70 | <p> |
---|
71 | |
---|
72 | <p> |
---|
73 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00069">69</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> |
---|
74 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya0" doxytag="Ogre::GLHardwareOcclusionQuery::GLHardwareOcclusionQuery" ></a><p> |
---|
75 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
76 | <tr> |
---|
77 | <td class="mdRow"> |
---|
78 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
79 | <tr> |
---|
80 | <td class="md" nowrap valign="top"> Ogre::GLHardwareOcclusionQuery::GLHardwareOcclusionQuery </td> |
---|
81 | <td class="md" valign="top">( </td> |
---|
82 | <td class="mdname1" valign="top" nowrap> </td> |
---|
83 | <td class="md" valign="top"> ) </td> |
---|
84 | <td class="md" nowrap></td> |
---|
85 | </tr> |
---|
86 | |
---|
87 | </table> |
---|
88 | </td> |
---|
89 | </tr> |
---|
90 | </table> |
---|
91 | <table cellspacing=5 cellpadding=0 border=0> |
---|
92 | <tr> |
---|
93 | <td> |
---|
94 | |
---|
95 | </td> |
---|
96 | <td> |
---|
97 | |
---|
98 | <p> |
---|
99 | Default object constructor. |
---|
100 | <p> |
---|
101 | </td> |
---|
102 | </tr> |
---|
103 | </table> |
---|
104 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya1" doxytag="Ogre::GLHardwareOcclusionQuery::~GLHardwareOcclusionQuery" ></a><p> |
---|
105 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
106 | <tr> |
---|
107 | <td class="mdRow"> |
---|
108 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
109 | <tr> |
---|
110 | <td class="md" nowrap valign="top"> Ogre::GLHardwareOcclusionQuery::~<a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html">GLHardwareOcclusionQuery</a> </td> |
---|
111 | <td class="md" valign="top">( </td> |
---|
112 | <td class="mdname1" valign="top" nowrap> </td> |
---|
113 | <td class="md" valign="top"> ) </td> |
---|
114 | <td class="md" nowrap></td> |
---|
115 | </tr> |
---|
116 | |
---|
117 | </table> |
---|
118 | </td> |
---|
119 | </tr> |
---|
120 | </table> |
---|
121 | <table cellspacing=5 cellpadding=0 border=0> |
---|
122 | <tr> |
---|
123 | <td> |
---|
124 | |
---|
125 | </td> |
---|
126 | <td> |
---|
127 | |
---|
128 | <p> |
---|
129 | Object destructor. |
---|
130 | <p> |
---|
131 | </td> |
---|
132 | </tr> |
---|
133 | </table> |
---|
134 | <hr><h2>Member Function Documentation</h2> |
---|
135 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya2" doxytag="Ogre::GLHardwareOcclusionQuery::beginOcclusionQuery" ></a><p> |
---|
136 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
137 | <tr> |
---|
138 | <td class="mdRow"> |
---|
139 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
140 | <tr> |
---|
141 | <td class="md" nowrap valign="top"> void Ogre::GLHardwareOcclusionQuery::beginOcclusionQuery </td> |
---|
142 | <td class="md" valign="top">( </td> |
---|
143 | <td class="mdname1" valign="top" nowrap> </td> |
---|
144 | <td class="md" valign="top"> ) </td> |
---|
145 | <td class="md" nowrap><code> [virtual]</code></td> |
---|
146 | </tr> |
---|
147 | |
---|
148 | </table> |
---|
149 | </td> |
---|
150 | </tr> |
---|
151 | </table> |
---|
152 | <table cellspacing=5 cellpadding=0 border=0> |
---|
153 | <tr> |
---|
154 | <td> |
---|
155 | |
---|
156 | </td> |
---|
157 | <td> |
---|
158 | |
---|
159 | <p> |
---|
160 | Starts the hardware occlusion query Simple usage: Create one or more OcclusionQuery object one per outstanding query or one per tested object OcclusionQuery* m_pOcclusionQuery; createOcclusionQuery( &m_pOcclusionQuery ); In the rendering loop: Draw all occluders m_pOcclusionQuery->startOcclusionQuery(); Draw the polygons to be tested m_pOcclusionQuery-><a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQuerya3">endOcclusionQuery()</a>;. |
---|
161 | <p> |
---|
162 | Results must be pulled using: UINT m_uintNumberOfPixelsVisable; pullOcclusionQuery( &m_dwNumberOfPixelsVisable ); You may not get the result directly after the first pass or frame. Objects not visible must be tested every frame, visible objects may be tested less frequently. |
---|
163 | <p> |
---|
164 | Implements <a class="el" href="classOgre_1_1HardwareOcclusionQuery.html#Ogre_1_1HardwareOcclusionQuerya2">Ogre::HardwareOcclusionQuery</a>. </td> |
---|
165 | </tr> |
---|
166 | </table> |
---|
167 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya3" doxytag="Ogre::GLHardwareOcclusionQuery::endOcclusionQuery" ></a><p> |
---|
168 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
169 | <tr> |
---|
170 | <td class="mdRow"> |
---|
171 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
172 | <tr> |
---|
173 | <td class="md" nowrap valign="top"> void Ogre::GLHardwareOcclusionQuery::endOcclusionQuery </td> |
---|
174 | <td class="md" valign="top">( </td> |
---|
175 | <td class="mdname1" valign="top" nowrap> </td> |
---|
176 | <td class="md" valign="top"> ) </td> |
---|
177 | <td class="md" nowrap><code> [virtual]</code></td> |
---|
178 | </tr> |
---|
179 | |
---|
180 | </table> |
---|
181 | </td> |
---|
182 | </tr> |
---|
183 | </table> |
---|
184 | <table cellspacing=5 cellpadding=0 border=0> |
---|
185 | <tr> |
---|
186 | <td> |
---|
187 | |
---|
188 | </td> |
---|
189 | <td> |
---|
190 | |
---|
191 | <p> |
---|
192 | Ends the hardware occlusion test. |
---|
193 | <p> |
---|
194 | |
---|
195 | <p> |
---|
196 | Implements <a class="el" href="classOgre_1_1HardwareOcclusionQuery.html#Ogre_1_1HardwareOcclusionQuerya3">Ogre::HardwareOcclusionQuery</a>. </td> |
---|
197 | </tr> |
---|
198 | </table> |
---|
199 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya5" doxytag="Ogre::GLHardwareOcclusionQuery::getLastQuerysPixelcount" ></a><p> |
---|
200 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
201 | <tr> |
---|
202 | <td class="mdRow"> |
---|
203 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
204 | <tr> |
---|
205 | <td class="md" nowrap valign="top"> unsigned int Ogre::GLHardwareOcclusionQuery::getLastQuerysPixelcount </td> |
---|
206 | <td class="md" valign="top">( </td> |
---|
207 | <td class="mdname1" valign="top" nowrap> </td> |
---|
208 | <td class="md" valign="top"> ) </td> |
---|
209 | <td class="md" nowrap><code> [virtual]</code></td> |
---|
210 | </tr> |
---|
211 | |
---|
212 | </table> |
---|
213 | </td> |
---|
214 | </tr> |
---|
215 | </table> |
---|
216 | <table cellspacing=5 cellpadding=0 border=0> |
---|
217 | <tr> |
---|
218 | <td> |
---|
219 | |
---|
220 | </td> |
---|
221 | <td> |
---|
222 | |
---|
223 | <p> |
---|
224 | Let's you get the last pixel count with out doing the hardware occlusion test. |
---|
225 | <p> |
---|
226 | <dl compact><dt><b>Returns:</b></dt><dd>The last fragment count from the last test. Remarks This function won't give you new values, just the old value.</dd></dl> |
---|
227 | |
---|
228 | <p> |
---|
229 | Implements <a class="el" href="classOgre_1_1HardwareOcclusionQuery.html#Ogre_1_1HardwareOcclusionQuerya5">Ogre::HardwareOcclusionQuery</a>. |
---|
230 | <p> |
---|
231 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00092">92</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
232 | </tr> |
---|
233 | </table> |
---|
234 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya8" doxytag="Ogre::GLHardwareOcclusionQuery::getSkipRate" ></a><p> |
---|
235 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
236 | <tr> |
---|
237 | <td class="mdRow"> |
---|
238 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
239 | <tr> |
---|
240 | <td class="md" nowrap valign="top"> int Ogre::GLHardwareOcclusionQuery::getSkipRate </td> |
---|
241 | <td class="md" valign="top">( </td> |
---|
242 | <td class="mdname1" valign="top" nowrap> </td> |
---|
243 | <td class="md" valign="top"> ) </td> |
---|
244 | <td class="md" nowrap><code> [virtual]</code></td> |
---|
245 | </tr> |
---|
246 | |
---|
247 | </table> |
---|
248 | </td> |
---|
249 | </tr> |
---|
250 | </table> |
---|
251 | <table cellspacing=5 cellpadding=0 border=0> |
---|
252 | <tr> |
---|
253 | <td> |
---|
254 | |
---|
255 | </td> |
---|
256 | <td> |
---|
257 | |
---|
258 | <p> |
---|
259 | |
---|
260 | <p> |
---|
261 | Implements <a class="el" href="classOgre_1_1HardwareOcclusionQuery.html#Ogre_1_1HardwareOcclusionQuerya8">Ogre::HardwareOcclusionQuery</a>. |
---|
262 | <p> |
---|
263 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00111">111</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
264 | </tr> |
---|
265 | </table> |
---|
266 | <a class="anchor" name="Ogre_1_1HardwareOcclusionQuerya6" doxytag="Ogre::GLHardwareOcclusionQuery::HardwareOcclusionQuery::isStillOutstanding" ></a><p> |
---|
267 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
268 | <tr> |
---|
269 | <td class="mdRow"> |
---|
270 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
271 | <tr> |
---|
272 | <td class="md" nowrap valign="top"> virtual bool Ogre::HardwareOcclusionQuery::HardwareOcclusionQuery::isStillOutstanding </td> |
---|
273 | <td class="md" valign="top">( </td> |
---|
274 | <td class="md" nowrap valign="top">void </td> |
---|
275 | <td class="mdname1" valign="top" nowrap> </td> |
---|
276 | <td class="md" valign="top"> ) </td> |
---|
277 | <td class="md" nowrap><code> [pure virtual, inherited]</code></td> |
---|
278 | </tr> |
---|
279 | |
---|
280 | </table> |
---|
281 | </td> |
---|
282 | </tr> |
---|
283 | </table> |
---|
284 | <table cellspacing=5 cellpadding=0 border=0> |
---|
285 | <tr> |
---|
286 | <td> |
---|
287 | |
---|
288 | </td> |
---|
289 | <td> |
---|
290 | |
---|
291 | <p> |
---|
292 | Lets you know when query is done, or still be processed by the Hardware. |
---|
293 | <p> |
---|
294 | <dl compact><dt><b>Returns:</b></dt><dd>true if query isn't finished.</dd></dl> |
---|
295 | </td> |
---|
296 | </tr> |
---|
297 | </table> |
---|
298 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya6" doxytag="Ogre::GLHardwareOcclusionQuery::isStillOutstanding" ></a><p> |
---|
299 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
300 | <tr> |
---|
301 | <td class="mdRow"> |
---|
302 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
303 | <tr> |
---|
304 | <td class="md" nowrap valign="top"> bool Ogre::GLHardwareOcclusionQuery::isStillOutstanding </td> |
---|
305 | <td class="md" valign="top">( </td> |
---|
306 | <td class="md" nowrap valign="top">void </td> |
---|
307 | <td class="mdname1" valign="top" nowrap> </td> |
---|
308 | <td class="md" valign="top"> ) </td> |
---|
309 | <td class="md" nowrap></td> |
---|
310 | </tr> |
---|
311 | |
---|
312 | </table> |
---|
313 | </td> |
---|
314 | </tr> |
---|
315 | </table> |
---|
316 | <table cellspacing=5 cellpadding=0 border=0> |
---|
317 | <tr> |
---|
318 | <td> |
---|
319 | |
---|
320 | </td> |
---|
321 | <td> |
---|
322 | |
---|
323 | <p> |
---|
324 | </td> |
---|
325 | </tr> |
---|
326 | </table> |
---|
327 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya4" doxytag="Ogre::GLHardwareOcclusionQuery::pullOcclusionQuery" ></a><p> |
---|
328 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
329 | <tr> |
---|
330 | <td class="mdRow"> |
---|
331 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
332 | <tr> |
---|
333 | <td class="md" nowrap valign="top"> bool Ogre::GLHardwareOcclusionQuery::pullOcclusionQuery </td> |
---|
334 | <td class="md" valign="top">( </td> |
---|
335 | <td class="md" nowrap valign="top">unsigned int * </td> |
---|
336 | <td class="mdname" nowrap> <em>NumOfFragments</em>, </td> |
---|
337 | </tr> |
---|
338 | <tr> |
---|
339 | <td class="md" nowrap align="right"></td> |
---|
340 | <td></td> |
---|
341 | <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a138">HW_OCCLUSIONQUERY</a> </td> |
---|
342 | <td class="mdname" nowrap> <em>flag</em></td> |
---|
343 | </tr> |
---|
344 | <tr> |
---|
345 | <td></td> |
---|
346 | <td class="md">) </td> |
---|
347 | <td class="md" colspan="2"><code> [virtual]</code></td> |
---|
348 | </tr> |
---|
349 | |
---|
350 | </table> |
---|
351 | </td> |
---|
352 | </tr> |
---|
353 | </table> |
---|
354 | <table cellspacing=5 cellpadding=0 border=0> |
---|
355 | <tr> |
---|
356 | <td> |
---|
357 | |
---|
358 | </td> |
---|
359 | <td> |
---|
360 | |
---|
361 | <p> |
---|
362 | Pulls the hardware occlusion query too see if there is a result. |
---|
363 | <p> |
---|
364 | <dl compact><dt><b>Return values:</b></dt><dd> |
---|
365 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
366 | <tr><td valign=top><em>NumOfFragments</em> </td><td>will get the resulting number of fragments. </td></tr> |
---|
367 | </table> |
---|
368 | </dl> |
---|
369 | <dl compact><dt><b>Returns:</b></dt><dd>True if success or false if not. In DX9 mode specifying OCCLUSIONQUERY_FLUSH as the flag, will case the driver to flush whatever API calls are batched. In OpenGL mode it makes no difference if you specify OCCLUSIONQUERY_FLUSH or OCCLUSIONQUERY_NOFLUSH. </dd></dl> |
---|
370 | |
---|
371 | <p> |
---|
372 | Implements <a class="el" href="classOgre_1_1HardwareOcclusionQuery.html#Ogre_1_1HardwareOcclusionQuerya4">Ogre::HardwareOcclusionQuery</a>. </td> |
---|
373 | </tr> |
---|
374 | </table> |
---|
375 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQuerya7" doxytag="Ogre::GLHardwareOcclusionQuery::setSkipRate" ></a><p> |
---|
376 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
377 | <tr> |
---|
378 | <td class="mdRow"> |
---|
379 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
380 | <tr> |
---|
381 | <td class="md" nowrap valign="top"> void Ogre::GLHardwareOcclusionQuery::setSkipRate </td> |
---|
382 | <td class="md" valign="top">( </td> |
---|
383 | <td class="md" nowrap valign="top">int </td> |
---|
384 | <td class="mdname1" valign="top" nowrap> <em>skip</em> </td> |
---|
385 | <td class="md" valign="top"> ) </td> |
---|
386 | <td class="md" nowrap><code> [virtual]</code></td> |
---|
387 | </tr> |
---|
388 | |
---|
389 | </table> |
---|
390 | </td> |
---|
391 | </tr> |
---|
392 | </table> |
---|
393 | <table cellspacing=5 cellpadding=0 border=0> |
---|
394 | <tr> |
---|
395 | <td> |
---|
396 | |
---|
397 | </td> |
---|
398 | <td> |
---|
399 | |
---|
400 | <p> |
---|
401 | Remarks This function allows you to set how often the hardware occlusion really sent to the driver if you set it to 0 every hardware occlusion test is actually made. |
---|
402 | <p> |
---|
403 | If you set it to 2 only 50% of your queries are sent. for all visible objects. 3 will result in 33% of all queries to actually be sent and so on. New and none visible objects will be tested all the time. This functionality is here because this class can keep track on visible and none visible objects for you. Once you you set the SkipRate for any hardware occlusion instance it effects all others. |
---|
404 | <p> |
---|
405 | Implements <a class="el" href="classOgre_1_1HardwareOcclusionQuery.html#Ogre_1_1HardwareOcclusionQuerya7">Ogre::HardwareOcclusionQuery</a>. |
---|
406 | <p> |
---|
407 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00110">110</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
408 | </tr> |
---|
409 | </table> |
---|
410 | <hr><h2>Member Data Documentation</h2> |
---|
411 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQueryp2" doxytag="Ogre::GLHardwareOcclusionQuery::m_bOcclusionQuery" ></a><p> |
---|
412 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
413 | <tr> |
---|
414 | <td class="mdRow"> |
---|
415 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
416 | <tr> |
---|
417 | <td class="md" nowrap valign="top"> bool <a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp2">Ogre::GLHardwareOcclusionQuery::m_bOcclusionQuery</a><code> [protected]</code> |
---|
418 | </table> |
---|
419 | </td> |
---|
420 | </tr> |
---|
421 | </table> |
---|
422 | <table cellspacing=5 cellpadding=0 border=0> |
---|
423 | <tr> |
---|
424 | <td> |
---|
425 | |
---|
426 | </td> |
---|
427 | <td> |
---|
428 | |
---|
429 | <p> |
---|
430 | |
---|
431 | <p> |
---|
432 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00121">121</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
433 | </tr> |
---|
434 | </table> |
---|
435 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQueryp5" doxytag="Ogre::GLHardwareOcclusionQuery::mHasOcclusionSupport" ></a><p> |
---|
436 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
437 | <tr> |
---|
438 | <td class="mdRow"> |
---|
439 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
440 | <tr> |
---|
441 | <td class="md" nowrap valign="top"> bool <a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp5">Ogre::GLHardwareOcclusionQuery::mHasOcclusionSupport</a><code> [protected]</code> |
---|
442 | </table> |
---|
443 | </td> |
---|
444 | </tr> |
---|
445 | </table> |
---|
446 | <table cellspacing=5 cellpadding=0 border=0> |
---|
447 | <tr> |
---|
448 | <td> |
---|
449 | |
---|
450 | </td> |
---|
451 | <td> |
---|
452 | |
---|
453 | <p> |
---|
454 | |
---|
455 | <p> |
---|
456 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00124">124</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
457 | </tr> |
---|
458 | </table> |
---|
459 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQueryp0" doxytag="Ogre::GLHardwareOcclusionQuery::mPixelCount" ></a><p> |
---|
460 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
461 | <tr> |
---|
462 | <td class="mdRow"> |
---|
463 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
464 | <tr> |
---|
465 | <td class="md" nowrap valign="top"> unsigned int <a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp0">Ogre::GLHardwareOcclusionQuery::mPixelCount</a><code> [protected]</code> |
---|
466 | </table> |
---|
467 | </td> |
---|
468 | </tr> |
---|
469 | </table> |
---|
470 | <table cellspacing=5 cellpadding=0 border=0> |
---|
471 | <tr> |
---|
472 | <td> |
---|
473 | |
---|
474 | </td> |
---|
475 | <td> |
---|
476 | |
---|
477 | <p> |
---|
478 | |
---|
479 | <p> |
---|
480 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00119">119</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
481 | </tr> |
---|
482 | </table> |
---|
483 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQueryp1" doxytag="Ogre::GLHardwareOcclusionQuery::mQueryID" ></a><p> |
---|
484 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
485 | <tr> |
---|
486 | <td class="mdRow"> |
---|
487 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
488 | <tr> |
---|
489 | <td class="md" nowrap valign="top"> GLuint <a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp1">Ogre::GLHardwareOcclusionQuery::mQueryID</a><code> [protected]</code> |
---|
490 | </table> |
---|
491 | </td> |
---|
492 | </tr> |
---|
493 | </table> |
---|
494 | <table cellspacing=5 cellpadding=0 border=0> |
---|
495 | <tr> |
---|
496 | <td> |
---|
497 | |
---|
498 | </td> |
---|
499 | <td> |
---|
500 | |
---|
501 | <p> |
---|
502 | |
---|
503 | <p> |
---|
504 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00120">120</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
505 | </tr> |
---|
506 | </table> |
---|
507 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQueryp3" doxytag="Ogre::GLHardwareOcclusionQuery::mSkipCounter" ></a><p> |
---|
508 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
509 | <tr> |
---|
510 | <td class="mdRow"> |
---|
511 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
512 | <tr> |
---|
513 | <td class="md" nowrap valign="top"> int <a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp3">Ogre::GLHardwareOcclusionQuery::mSkipCounter</a><code> [protected]</code> |
---|
514 | </table> |
---|
515 | </td> |
---|
516 | </tr> |
---|
517 | </table> |
---|
518 | <table cellspacing=5 cellpadding=0 border=0> |
---|
519 | <tr> |
---|
520 | <td> |
---|
521 | |
---|
522 | </td> |
---|
523 | <td> |
---|
524 | |
---|
525 | <p> |
---|
526 | |
---|
527 | <p> |
---|
528 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00122">122</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
529 | </tr> |
---|
530 | </table> |
---|
531 | <a class="anchor" name="Ogre_1_1GLHardwareOcclusionQueryp4" doxytag="Ogre::GLHardwareOcclusionQuery::mSkipInterval" ></a><p> |
---|
532 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
533 | <tr> |
---|
534 | <td class="mdRow"> |
---|
535 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
536 | <tr> |
---|
537 | <td class="md" nowrap valign="top"> int <a class="el" href="classOgre_1_1GLHardwareOcclusionQuery.html#Ogre_1_1GLHardwareOcclusionQueryp4">Ogre::GLHardwareOcclusionQuery::mSkipInterval</a><code> [protected]</code> |
---|
538 | </table> |
---|
539 | </td> |
---|
540 | </tr> |
---|
541 | </table> |
---|
542 | <table cellspacing=5 cellpadding=0 border=0> |
---|
543 | <tr> |
---|
544 | <td> |
---|
545 | |
---|
546 | </td> |
---|
547 | <td> |
---|
548 | |
---|
549 | <p> |
---|
550 | |
---|
551 | <p> |
---|
552 | Definition at line <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html#l00123">123</a> of file <a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a>. </td> |
---|
553 | </tr> |
---|
554 | </table> |
---|
555 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
556 | <li><a class="el" href="OgreGLHardwareOcclusionQuery_8h-source.html">OgreGLHardwareOcclusionQuery.h</a></ul> |
---|
557 | <hr> |
---|
558 | <p> |
---|
559 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
560 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
561 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
562 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
563 | <Work rdf:about=""> |
---|
564 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
565 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
566 | </Work> |
---|
567 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
568 | |
---|
569 | Last modified Sun Feb 12 13:10:12 2006 |
---|
570 | </p> |
---|
571 | </body> |
---|
572 | </html> |
---|