\hypertarget{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query}{}\section{Ogre\+:\+:G\+L\+E\+S2\+Hardware\+Occlusion\+Query Class Reference}
\label{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query}\index{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}


{\ttfamily \#include $<$Ogre\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query.\+h$>$}



Inheritance diagram for Ogre\+:\+:G\+L\+E\+S2\+Hardware\+Occlusion\+Query\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=251pt]{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_ac5a9f9ce5d0c6376d21c0b38e90407e9}{G\+L\+E\+S2\+Hardware\+Occlusion\+Query} ()
\begin{DoxyCompactList}\small\item\em Default object constructor. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a28654e4a823e22abb31cc32d4324b99c}{$\sim$\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query} ()
\begin{DoxyCompactList}\small\item\em Object destructor. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a82834457995eab4ee174ebf118fa1389}{begin\+Occlusion\+Query} ()
\begin{DoxyCompactList}\small\item\em Starts the hardware occlusion query. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_af54bffd83e8dbd618fcd3e2fe8df11a3}{end\+Occlusion\+Query} ()
\begin{DoxyCompactList}\small\item\em Ends the hardware occlusion test. \end{DoxyCompactList}\item 
unsigned int \hyperlink{class_ogre_1_1_hardware_occlusion_query_ad1c71c786e262908a3aa805287b815e3}{get\+Last\+Querys\+Pixelcount} () const
\begin{DoxyCompactList}\small\item\em Let\textquotesingle{}s you get the last pixel count with out doing the hardware occlusion test. \end{DoxyCompactList}\item 
bool \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a67fc3b20958ad8a2e49ed27a48bcd763}{is\+Still\+Outstanding} (void)
\begin{DoxyCompactList}\small\item\em Lets you know when query is done, or still be processed by the Hardware. \end{DoxyCompactList}\item 
bool \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a54246fdc493f06d649c5a7076a842c0b}{pull\+Occlusion\+Query} (unsigned int $\ast$Num\+Of\+Fragments)
\begin{DoxyCompactList}\small\item\em Pulls the hardware occlusion query. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_ac5a9f9ce5d0c6376d21c0b38e90407e9}\label{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_ac5a9f9ce5d0c6376d21c0b38e90407e9}} 
\index{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\index{G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\subsubsection{\texorpdfstring{G\+L\+E\+S2\+Hardware\+Occlusion\+Query()}{GLES2HardwareOcclusionQuery()}}
{\footnotesize\ttfamily Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Default object constructor. 

\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a28654e4a823e22abb31cc32d4324b99c}\label{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a28654e4a823e22abb31cc32d4324b99c}} 
\index{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!````~G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{$\sim$\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\index{````~G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{$\sim$\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\subsubsection{\texorpdfstring{$\sim$\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query()}{~GLES2HardwareOcclusionQuery()}}
{\footnotesize\ttfamily Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query\+::$\sim$\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Object destructor. 



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a82834457995eab4ee174ebf118fa1389}\label{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a82834457995eab4ee174ebf118fa1389}} 
\index{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!begin\+Occlusion\+Query@{begin\+Occlusion\+Query}}
\index{begin\+Occlusion\+Query@{begin\+Occlusion\+Query}!Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\subsubsection{\texorpdfstring{begin\+Occlusion\+Query()}{beginOcclusionQuery()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query\+::begin\+Occlusion\+Query (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Starts the hardware occlusion query. 

\begin{DoxyRemark}{Remarks}
Simple usage\+: Create one or more Occlusion\+Query object one per outstanding query or one per tested object Occlusion\+Query$\ast$ m\+Occlusion\+Query; create\+Occlusion\+Query( \&m\+Occlusion\+Query ); In the rendering loop\+: Draw all occluders m\+Occlusion\+Query-\/$>$start\+Occlusion\+Query(); Draw the polygons to be tested m\+Occlusion\+Query-\/$>$\hyperlink{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_af54bffd83e8dbd618fcd3e2fe8df11a3}{end\+Occlusion\+Query()};
\end{DoxyRemark}
Results must be pulled using\+: U\+I\+NT m\+Number\+Of\+Pixels\+Visable; pull\+Occlusion\+Query( \&m\+Number\+Of\+Pixels\+Visable ); 

Implements \hyperlink{class_ogre_1_1_hardware_occlusion_query_a40efe70ae4a5877fadd5ef40b2e5fcf3}{Ogre\+::\+Hardware\+Occlusion\+Query}.

\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_af54bffd83e8dbd618fcd3e2fe8df11a3}\label{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_af54bffd83e8dbd618fcd3e2fe8df11a3}} 
\index{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!end\+Occlusion\+Query@{end\+Occlusion\+Query}}
\index{end\+Occlusion\+Query@{end\+Occlusion\+Query}!Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\subsubsection{\texorpdfstring{end\+Occlusion\+Query()}{endOcclusionQuery()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query\+::end\+Occlusion\+Query (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Ends the hardware occlusion test. 



Implements \hyperlink{class_ogre_1_1_hardware_occlusion_query_aae324a11ce1f97199024d1ee38a297c2}{Ogre\+::\+Hardware\+Occlusion\+Query}.

\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a54246fdc493f06d649c5a7076a842c0b}\label{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a54246fdc493f06d649c5a7076a842c0b}} 
\index{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!pull\+Occlusion\+Query@{pull\+Occlusion\+Query}}
\index{pull\+Occlusion\+Query@{pull\+Occlusion\+Query}!Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\subsubsection{\texorpdfstring{pull\+Occlusion\+Query()}{pullOcclusionQuery()}}
{\footnotesize\ttfamily bool Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query\+::pull\+Occlusion\+Query (\begin{DoxyParamCaption}\item[{unsigned int $\ast$}]{Num\+Of\+Fragments }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Pulls the hardware occlusion query. 

\begin{DoxyNote}{Note}
Waits until the query result is available; use is\+Still\+Outstanding if just want to test if the result is available. 
\end{DoxyNote}

\begin{DoxyRetVals}{Return values}
{\em Num\+Of\+Fragments} & will get the resulting number of fragments. \\
\hline
\end{DoxyRetVals}
\begin{DoxyReturn}{Returns}
True if success or false if not. 
\end{DoxyReturn}


Implements \hyperlink{class_ogre_1_1_hardware_occlusion_query_ae30ceda53d771c5db266fdcfd14e6c9c}{Ogre\+::\+Hardware\+Occlusion\+Query}.

\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a67fc3b20958ad8a2e49ed27a48bcd763}\label{class_ogre_1_1_g_l_e_s2_hardware_occlusion_query_a67fc3b20958ad8a2e49ed27a48bcd763}} 
\index{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!is\+Still\+Outstanding@{is\+Still\+Outstanding}}
\index{is\+Still\+Outstanding@{is\+Still\+Outstanding}!Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\subsubsection{\texorpdfstring{is\+Still\+Outstanding()}{isStillOutstanding()}}
{\footnotesize\ttfamily bool Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query\+::is\+Still\+Outstanding (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Lets you know when query is done, or still be processed by the Hardware. 

\begin{DoxyReturn}{Returns}
true if query isn\textquotesingle{}t finished. 
\end{DoxyReturn}


Implements \hyperlink{class_ogre_1_1_hardware_occlusion_query_abdc85b8e78de55492c8d2d730150e08d}{Ogre\+::\+Hardware\+Occlusion\+Query}.

\mbox{\Hypertarget{class_ogre_1_1_hardware_occlusion_query_ad1c71c786e262908a3aa805287b815e3}\label{class_ogre_1_1_hardware_occlusion_query_ad1c71c786e262908a3aa805287b815e3}} 
\index{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}!get\+Last\+Querys\+Pixelcount@{get\+Last\+Querys\+Pixelcount}}
\index{get\+Last\+Querys\+Pixelcount@{get\+Last\+Querys\+Pixelcount}!Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query@{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query}}
\subsubsection{\texorpdfstring{get\+Last\+Querys\+Pixelcount()}{getLastQuerysPixelcount()}}
{\footnotesize\ttfamily unsigned int Ogre\+::\+Hardware\+Occlusion\+Query\+::get\+Last\+Querys\+Pixelcount (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Let\textquotesingle{}s you get the last pixel count with out doing the hardware occlusion test. 

\begin{DoxyReturn}{Returns}
The last fragment count from the last test. Remarks This function won\textquotesingle{}t give you new values, just the old value. 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_g_l_e_s2_hardware_occlusion_query_8h}{Ogre\+G\+L\+E\+S2\+Hardware\+Occlusion\+Query.\+h}\end{DoxyCompactItemize}
