\hypertarget{struct_ogre_1_1_static_face_group}{}\section{Ogre\+:\+:Static\+Face\+Group Struct Reference}
\label{struct_ogre_1_1_static_face_group}\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}


Collects a group of static i.\+e.  




{\ttfamily \#include $<$Ogre\+Static\+Face\+Group.\+h$>$}

\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{struct_ogre_1_1_static_face_group_a3f73219edf1201e9a3c769f9ccc672bf}{element\+Start}
\begin{DoxyCompactList}\small\item\em Index into a buffer containing vertex indices. \end{DoxyCompactList}\item 
\hyperlink{group___scene_ga7c11c8a17d7bbfc5aab6f982fb0d7f38}{Face\+Group\+Type} \hyperlink{struct_ogre_1_1_static_face_group_abc91f43284e36aa2376f4d54078f0480}{f\+Type}
\item 
bool \hyperlink{struct_ogre_1_1_static_face_group_aa58eb0dbf0fdf7e625c80e7dbb0e76f9}{is\+Sky}
\begin{DoxyCompactList}\small\item\em Is this a sky surface? \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_aeb9f62c8e6c4239315286c63321722b2}{Resource\+Handle} \hyperlink{struct_ogre_1_1_static_face_group_a5589803da362b70859d96857ba2d88c5}{material\+Handle}
\begin{DoxyCompactList}\small\item\em Handle to material used by this group. \end{DoxyCompactList}\item 
int \hyperlink{struct_ogre_1_1_static_face_group_a2dba19f0f06565cd111206a4a673239c}{num\+Elements}
\begin{DoxyCompactList}\small\item\em The number of vertex indices. \end{DoxyCompactList}\item 
int \hyperlink{struct_ogre_1_1_static_face_group_a4b1e2bb83673099b9d2459a1bb67f429}{num\+Vertices}
\begin{DoxyCompactList}\small\item\em The range of vertices in the buffer this facegroup references. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_patch_surface}{Patch\+Surface} $\ast$ \hyperlink{struct_ogre_1_1_static_face_group_a42cad07e5dea1a57a10304dcd7b7810b}{patch\+Surf}
\begin{DoxyCompactList}\small\item\em Patch surface (only applicable when f\+Type = F\+G\+T\+\_\+\+P\+A\+T\+CH) \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_plane}{Plane} \hyperlink{struct_ogre_1_1_static_face_group_ad258e1806394cbd8b2efe7f39d3a7296}{plane}
\item 
int \hyperlink{struct_ogre_1_1_static_face_group_a09215495af768e8a68b20cf1a937af3a}{vertex\+Start}
\begin{DoxyCompactList}\small\item\em Index into a buffer containing vertex definitions. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
std\+::ostream \& \hyperlink{struct_ogre_1_1_static_face_group_a11792f9b5cabecab726972024952f157}{operator$<$$<$} (std\+::ostream \&o, const \hyperlink{struct_ogre_1_1_static_face_group}{Static\+Face\+Group} \&s)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Collects a group of static i.\+e. 

immovable faces together which have common properties like the material they use, the plane they lie on. \begin{DoxyRemark}{Remarks}
Whilst for discrete geometry (i.\+e. movable objects) groups of faces are held in the \hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh} class, for immovable objects like scenery there needs to ba little more flexibility in the grouping since the group is likely to be a small part of a huge set of geometry. In addition, because the faces are unmoving certain optimisations can be performed, e.\+g. precalculating a world-\/coordinate bounding box and normal. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
Exactly how this class is used depends on the format of the large static geometry used in the level. An example would be the use of this class in the \hyperlink{class_ogre_1_1_bsp_node}{Bsp\+Node} class for indoor levels. For flexibility and efficiency, it is not assumed that this class holds details of the vertices itself, or in fact that it holds the vertex indices itself. Everything is manipulated via pointers so if you want this class to point into a block of geometry data it can. 
\end{DoxyParagraph}


\subsection{Friends And Related Function Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_static_face_group_a11792f9b5cabecab726972024952f157}\label{struct_ogre_1_1_static_face_group_a11792f9b5cabecab726972024952f157}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{operator$<$$<$}{operator<<}}
{\footnotesize\ttfamily std\+::ostream\& operator$<$$<$ (\begin{DoxyParamCaption}\item[{std\+::ostream \&}]{o,  }\item[{const \hyperlink{struct_ogre_1_1_static_face_group}{Static\+Face\+Group} \&}]{s }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [friend]}}



\subsection{Member Data Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_static_face_group_abc91f43284e36aa2376f4d54078f0480}\label{struct_ogre_1_1_static_face_group_abc91f43284e36aa2376f4d54078f0480}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!f\+Type@{f\+Type}}
\index{f\+Type@{f\+Type}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{f\+Type}{fType}}
{\footnotesize\ttfamily \hyperlink{group___scene_ga7c11c8a17d7bbfc5aab6f982fb0d7f38}{Face\+Group\+Type} Ogre\+::\+Static\+Face\+Group\+::f\+Type}

\mbox{\Hypertarget{struct_ogre_1_1_static_face_group_aa58eb0dbf0fdf7e625c80e7dbb0e76f9}\label{struct_ogre_1_1_static_face_group_aa58eb0dbf0fdf7e625c80e7dbb0e76f9}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!is\+Sky@{is\+Sky}}
\index{is\+Sky@{is\+Sky}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{is\+Sky}{isSky}}
{\footnotesize\ttfamily bool Ogre\+::\+Static\+Face\+Group\+::is\+Sky}



Is this a sky surface? 

\mbox{\Hypertarget{struct_ogre_1_1_static_face_group_a09215495af768e8a68b20cf1a937af3a}\label{struct_ogre_1_1_static_face_group_a09215495af768e8a68b20cf1a937af3a}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!vertex\+Start@{vertex\+Start}}
\index{vertex\+Start@{vertex\+Start}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{vertex\+Start}{vertexStart}}
{\footnotesize\ttfamily int Ogre\+::\+Static\+Face\+Group\+::vertex\+Start}



Index into a buffer containing vertex definitions. 

Because we\textquotesingle{}re dealing with subsets of large levels this is likely to be part-\/way through a huge vertex buffer. \mbox{\Hypertarget{struct_ogre_1_1_static_face_group_a4b1e2bb83673099b9d2459a1bb67f429}\label{struct_ogre_1_1_static_face_group_a4b1e2bb83673099b9d2459a1bb67f429}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!num\+Vertices@{num\+Vertices}}
\index{num\+Vertices@{num\+Vertices}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{num\+Vertices}{numVertices}}
{\footnotesize\ttfamily int Ogre\+::\+Static\+Face\+Group\+::num\+Vertices}



The range of vertices in the buffer this facegroup references. 

This is really for copying purposes only, so that we know which subset of vertices to copy from our large-\/level buffer into the rendering buffer. \mbox{\Hypertarget{struct_ogre_1_1_static_face_group_a3f73219edf1201e9a3c769f9ccc672bf}\label{struct_ogre_1_1_static_face_group_a3f73219edf1201e9a3c769f9ccc672bf}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!element\+Start@{element\+Start}}
\index{element\+Start@{element\+Start}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{element\+Start}{elementStart}}
{\footnotesize\ttfamily int Ogre\+::\+Static\+Face\+Group\+::element\+Start}



Index into a buffer containing vertex indices. 

This buffer may be individual to this group or shared for memory allocation efficiency.\+The vertex indexes are relative the the m\+Vertex\+Start pointer, not to the start of the large-\/level buffer, allowing simple reindexing when copying data into rendering buffers. This is only applicable to F\+G\+T\+\_\+\+F\+A\+C\+E\+\_\+\+L\+I\+ST face group types. \mbox{\Hypertarget{struct_ogre_1_1_static_face_group_a2dba19f0f06565cd111206a4a673239c}\label{struct_ogre_1_1_static_face_group_a2dba19f0f06565cd111206a4a673239c}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!num\+Elements@{num\+Elements}}
\index{num\+Elements@{num\+Elements}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{num\+Elements}{numElements}}
{\footnotesize\ttfamily int Ogre\+::\+Static\+Face\+Group\+::num\+Elements}



The number of vertex indices. 

This is only applicable to F\+G\+T\+\_\+\+F\+A\+C\+E\+\_\+\+L\+I\+ST face group types. \mbox{\Hypertarget{struct_ogre_1_1_static_face_group_a5589803da362b70859d96857ba2d88c5}\label{struct_ogre_1_1_static_face_group_a5589803da362b70859d96857ba2d88c5}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!material\+Handle@{material\+Handle}}
\index{material\+Handle@{material\+Handle}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{material\+Handle}{materialHandle}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_aeb9f62c8e6c4239315286c63321722b2}{Resource\+Handle} Ogre\+::\+Static\+Face\+Group\+::material\+Handle}



Handle to material used by this group. 

Note the use of the material handle rather than the material name -\/ this is for efficiency since there will be many of these. \mbox{\Hypertarget{struct_ogre_1_1_static_face_group_ad258e1806394cbd8b2efe7f39d3a7296}\label{struct_ogre_1_1_static_face_group_ad258e1806394cbd8b2efe7f39d3a7296}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!plane@{plane}}
\index{plane@{plane}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{plane}{plane}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_plane}{Plane} Ogre\+::\+Static\+Face\+Group\+::plane}

\mbox{\Hypertarget{struct_ogre_1_1_static_face_group_a42cad07e5dea1a57a10304dcd7b7810b}\label{struct_ogre_1_1_static_face_group_a42cad07e5dea1a57a10304dcd7b7810b}} 
\index{Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}!patch\+Surf@{patch\+Surf}}
\index{patch\+Surf@{patch\+Surf}!Ogre\+::\+Static\+Face\+Group@{Ogre\+::\+Static\+Face\+Group}}
\subsubsection{\texorpdfstring{patch\+Surf}{patchSurf}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_patch_surface}{Patch\+Surface}$\ast$ Ogre\+::\+Static\+Face\+Group\+::patch\+Surf}



Patch surface (only applicable when f\+Type = F\+G\+T\+\_\+\+P\+A\+T\+CH) 



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_static_face_group_8h}{Ogre\+Static\+Face\+Group.\+h}\end{DoxyCompactItemize}
