\hypertarget{class_ogre_1_1_prefab_factory}{}\section{Ogre\+:\+:Prefab\+Factory Class Reference}
\label{class_ogre_1_1_prefab_factory}\index{Ogre\+::\+Prefab\+Factory@{Ogre\+::\+Prefab\+Factory}}


A factory class that can create various mesh prefabs.  




{\ttfamily \#include $<$Ogre\+Prefab\+Factory.\+h$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static bool \hyperlink{class_ogre_1_1_prefab_factory_a9057439fd11ca34cd1805c805cb1e03e}{create\+Prefab} (\hyperlink{class_ogre_1_1_mesh}{Mesh} $\ast$mesh)
\begin{DoxyCompactList}\small\item\em If the given mesh has a known prefab resource name (e.\+g \char`\"{}\+Prefab\+\_\+\+Plane\char`\"{}) then this prefab will be created as a submesh of the given mesh. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A factory class that can create various mesh prefabs. 

\begin{DoxyRemark}{Remarks}
This class is used by Ogre\+Mesh\+Manager to offload the loading of various prefab types to a central location. 
\end{DoxyRemark}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_prefab_factory_a9057439fd11ca34cd1805c805cb1e03e}\label{class_ogre_1_1_prefab_factory_a9057439fd11ca34cd1805c805cb1e03e}} 
\index{Ogre\+::\+Prefab\+Factory@{Ogre\+::\+Prefab\+Factory}!create\+Prefab@{create\+Prefab}}
\index{create\+Prefab@{create\+Prefab}!Ogre\+::\+Prefab\+Factory@{Ogre\+::\+Prefab\+Factory}}
\subsubsection{\texorpdfstring{create\+Prefab()}{createPrefab()}}
{\footnotesize\ttfamily static bool Ogre\+::\+Prefab\+Factory\+::create\+Prefab (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_mesh}{Mesh} $\ast$}]{mesh }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



If the given mesh has a known prefab resource name (e.\+g \char`\"{}\+Prefab\+\_\+\+Plane\char`\"{}) then this prefab will be created as a submesh of the given mesh. 


\begin{DoxyParams}{Parameters}
{\em mesh} & The mesh that the potential prefab will be created in. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if a prefab has been created, otherwise false. 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_prefab_factory_8h}{Ogre\+Prefab\+Factory.\+h}\end{DoxyCompactItemize}
