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


Collects a group of static i.\+e.  




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

\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int \mbox{\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 
\mbox{\hyperlink{group___scene_ga7c11c8a17d7bbfc5aab6f982fb0d7f38}{Face\+Group\+Type}} \mbox{\hyperlink{struct_ogre_1_1_static_face_group_abc91f43284e36aa2376f4d54078f0480}{f\+Type}}
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_static_face_group_aa58eb0dbf0fdf7e625c80e7dbb0e76f9}{is\+Sky}}
\begin{DoxyCompactList}\small\item\em Is this a sky surface? \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_aeb9f62c8e6c4239315286c63321722b2}{Resource\+Handle}} \mbox{\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 \mbox{\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 \mbox{\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 
\mbox{\hyperlink{class_ogre_1_1_patch_surface}{Patch\+Surface}} $\ast$ \mbox{\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 
\mbox{\hyperlink{class_ogre_1_1_plane}{Plane}} \mbox{\hyperlink{struct_ogre_1_1_static_face_group_ad258e1806394cbd8b2efe7f39d3a7296}{plane}}
\item 
int \mbox{\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}
\doxysubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
std\+::ostream \& \mbox{\hyperlink{struct_ogre_1_1_static_face_group_a11792f9b5cabecab726972024952f157}{operator$<$$<$}} (std\+::ostream \&o, const \mbox{\hyperlink{struct_ogre_1_1_static_face_group}{Static\+Face\+Group}} \&s)
\end{DoxyCompactItemize}


\doxysubsection{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 \mbox{\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 \mbox{\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}


\doxysubsection{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::StaticFaceGroup@{Ogre::StaticFaceGroup}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{operator$<$$<$}{operator<<}}
{\footnotesize\ttfamily std\+::ostream\& operator$<$$<$ (\begin{DoxyParamCaption}\item[{std\+::ostream \&}]{o,  }\item[{const \mbox{\hyperlink{struct_ogre_1_1_static_face_group}{Static\+Face\+Group}} \&}]{s }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [friend]}}



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_static_face_group_abc91f43284e36aa2376f4d54078f0480}\label{struct_ogre_1_1_static_face_group_abc91f43284e36aa2376f4d54078f0480}} 
\index{Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}!fType@{fType}}
\index{fType@{fType}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{fType}{fType}}
{\footnotesize\ttfamily \mbox{\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::StaticFaceGroup@{Ogre::StaticFaceGroup}!isSky@{isSky}}
\index{isSky@{isSky}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{isSky}{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::StaticFaceGroup@{Ogre::StaticFaceGroup}!vertexStart@{vertexStart}}
\index{vertexStart@{vertexStart}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{vertexStart}{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::StaticFaceGroup@{Ogre::StaticFaceGroup}!numVertices@{numVertices}}
\index{numVertices@{numVertices}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{numVertices}{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::StaticFaceGroup@{Ogre::StaticFaceGroup}!elementStart@{elementStart}}
\index{elementStart@{elementStart}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{elementStart}{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::StaticFaceGroup@{Ogre::StaticFaceGroup}!numElements@{numElements}}
\index{numElements@{numElements}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{numElements}{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::StaticFaceGroup@{Ogre::StaticFaceGroup}!materialHandle@{materialHandle}}
\index{materialHandle@{materialHandle}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{materialHandle}{materialHandle}}
{\footnotesize\ttfamily \mbox{\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::StaticFaceGroup@{Ogre::StaticFaceGroup}!plane@{plane}}
\index{plane@{plane}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{plane}{plane}}
{\footnotesize\ttfamily \mbox{\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::StaticFaceGroup@{Ogre::StaticFaceGroup}!patchSurf@{patchSurf}}
\index{patchSurf@{patchSurf}!Ogre::StaticFaceGroup@{Ogre::StaticFaceGroup}}
\doxysubsubsection{\texorpdfstring{patchSurf}{patchSurf}}
{\footnotesize\ttfamily \mbox{\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 
\mbox{\hyperlink{_ogre_static_face_group_8h}{Ogre\+Static\+Face\+Group.\+h}}\end{DoxyCompactItemize}
