\hypertarget{class_ogre_1_1_index_data}{}\section{Ogre\+:\+:Index\+Data Class Reference}
\label{class_ogre_1_1_index_data}\index{Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}}


Summary class collecting together index data source information.  




{\ttfamily \#include $<$Ogre\+Vertex\+Index\+Data.\+h$>$}



Inheritance diagram for Ogre\+:\+:Index\+Data\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=176pt]{class_ogre_1_1_index_data__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_index_data_a79242aa4c8893016a56d2cc13a10f803}{Index\+Data} ()
\item 
\hyperlink{class_ogre_1_1_index_data_a952375c947bc66a7bc98fa1e20ac1e3d}{$\sim$\+Index\+Data} ()
\item 
\hyperlink{class_ogre_1_1_index_data}{Index\+Data} $\ast$ \hyperlink{class_ogre_1_1_index_data_a89fc853dc5502fc9559de426654b7276}{clone} (bool copy\+Data=true, \hyperlink{class_ogre_1_1_hardware_buffer_manager_base}{Hardware\+Buffer\+Manager\+Base} $\ast$mgr=0) const
\begin{DoxyCompactList}\small\item\em Clones this index data, potentially including replicating the index buffer. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_index_data_a0c19f7fc00c66266fd0d7fe671733112}{optimise\+Vertex\+Cache\+Tri\+List} (void)
\begin{DoxyCompactList}\small\item\em Re-\/order the indexes in this index data structure to be more vertex cache friendly; that is to re-\/use the same vertices as close together as possible. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{namespace_ogre_ae906cf8e579ba8ade19879ec05b1a456}{Hardware\+Index\+Buffer\+Shared\+Ptr} \hyperlink{class_ogre_1_1_index_data_a1a9f241fbc57ce4cce5615302da71b76}{index\+Buffer}
\begin{DoxyCompactList}\small\item\em Pointer to the \hyperlink{class_ogre_1_1_hardware_index_buffer}{Hardware\+Index\+Buffer} to use, must be specified if use\+Indexes = true. \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{class_ogre_1_1_index_data_afad8ae9cec6cab5c8c07ee5532dd89c5}{index\+Count}
\begin{DoxyCompactList}\small\item\em The number of indexes to use from the buffer. \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{class_ogre_1_1_index_data_a7cd3d6f7d4af3271bfae8ce49f46ff3a}{index\+Start}
\begin{DoxyCompactList}\small\item\em Index in the buffer to start from for this operation. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Summary class collecting together index data source information. 



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_index_data_a79242aa4c8893016a56d2cc13a10f803}\label{class_ogre_1_1_index_data_a79242aa4c8893016a56d2cc13a10f803}} 
\index{Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}!Index\+Data@{Index\+Data}}
\index{Index\+Data@{Index\+Data}!Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}}
\subsubsection{\texorpdfstring{Index\+Data()}{IndexData()}}
{\footnotesize\ttfamily Ogre\+::\+Index\+Data\+::\+Index\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_index_data_a952375c947bc66a7bc98fa1e20ac1e3d}\label{class_ogre_1_1_index_data_a952375c947bc66a7bc98fa1e20ac1e3d}} 
\index{Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}!````~Index\+Data@{$\sim$\+Index\+Data}}
\index{````~Index\+Data@{$\sim$\+Index\+Data}!Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}}
\subsubsection{\texorpdfstring{$\sim$\+Index\+Data()}{~IndexData()}}
{\footnotesize\ttfamily Ogre\+::\+Index\+Data\+::$\sim$\+Index\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_index_data_a89fc853dc5502fc9559de426654b7276}\label{class_ogre_1_1_index_data_a89fc853dc5502fc9559de426654b7276}} 
\index{Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}!clone@{clone}}
\index{clone@{clone}!Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}}
\subsubsection{\texorpdfstring{clone()}{clone()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_index_data}{Index\+Data}$\ast$ Ogre\+::\+Index\+Data\+::clone (\begin{DoxyParamCaption}\item[{bool}]{copy\+Data = {\ttfamily true},  }\item[{\hyperlink{class_ogre_1_1_hardware_buffer_manager_base}{Hardware\+Buffer\+Manager\+Base} $\ast$}]{mgr = {\ttfamily 0} }\end{DoxyParamCaption}) const}



Clones this index data, potentially including replicating the index buffer. 


\begin{DoxyParams}{Parameters}
{\em copy\+Data} & Whether to create new buffers too or just reference the existing ones \\
\hline
{\em mgr} & If supplied, the buffer manager through which copies should be made \\
\hline
\end{DoxyParams}
\begin{DoxyRemark}{Remarks}
The caller is expected to delete the returned pointer when finished 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_index_data_a0c19f7fc00c66266fd0d7fe671733112}\label{class_ogre_1_1_index_data_a0c19f7fc00c66266fd0d7fe671733112}} 
\index{Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}!optimise\+Vertex\+Cache\+Tri\+List@{optimise\+Vertex\+Cache\+Tri\+List}}
\index{optimise\+Vertex\+Cache\+Tri\+List@{optimise\+Vertex\+Cache\+Tri\+List}!Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}}
\subsubsection{\texorpdfstring{optimise\+Vertex\+Cache\+Tri\+List()}{optimiseVertexCacheTriList()}}
{\footnotesize\ttfamily void Ogre\+::\+Index\+Data\+::optimise\+Vertex\+Cache\+Tri\+List (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Re-\/order the indexes in this index data structure to be more vertex cache friendly; that is to re-\/use the same vertices as close together as possible. 

\begin{DoxyRemark}{Remarks}
Can only be used for index data which consists of triangle lists. It would in fact be pointless to use it on triangle strips or fans in any case. 
\end{DoxyRemark}


\subsection{Member Data Documentation}
\mbox{\Hypertarget{class_ogre_1_1_index_data_a1a9f241fbc57ce4cce5615302da71b76}\label{class_ogre_1_1_index_data_a1a9f241fbc57ce4cce5615302da71b76}} 
\index{Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}!index\+Buffer@{index\+Buffer}}
\index{index\+Buffer@{index\+Buffer}!Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}}
\subsubsection{\texorpdfstring{index\+Buffer}{indexBuffer}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_ae906cf8e579ba8ade19879ec05b1a456}{Hardware\+Index\+Buffer\+Shared\+Ptr} Ogre\+::\+Index\+Data\+::index\+Buffer}



Pointer to the \hyperlink{class_ogre_1_1_hardware_index_buffer}{Hardware\+Index\+Buffer} to use, must be specified if use\+Indexes = true. 



Referenced by Ogre\+::\+Lod0\+Stripifier\+::$\sim$\+Lod0\+Stripifier().

\mbox{\Hypertarget{class_ogre_1_1_index_data_a7cd3d6f7d4af3271bfae8ce49f46ff3a}\label{class_ogre_1_1_index_data_a7cd3d6f7d4af3271bfae8ce49f46ff3a}} 
\index{Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}!index\+Start@{index\+Start}}
\index{index\+Start@{index\+Start}!Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}}
\subsubsection{\texorpdfstring{index\+Start}{indexStart}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Index\+Data\+::index\+Start}



Index in the buffer to start from for this operation. 



Referenced by Ogre\+::\+Lod0\+Stripifier\+::$\sim$\+Lod0\+Stripifier().

\mbox{\Hypertarget{class_ogre_1_1_index_data_afad8ae9cec6cab5c8c07ee5532dd89c5}\label{class_ogre_1_1_index_data_afad8ae9cec6cab5c8c07ee5532dd89c5}} 
\index{Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}!index\+Count@{index\+Count}}
\index{index\+Count@{index\+Count}!Ogre\+::\+Index\+Data@{Ogre\+::\+Index\+Data}}
\subsubsection{\texorpdfstring{index\+Count}{indexCount}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Index\+Data\+::index\+Count}



The number of indexes to use from the buffer. 



Referenced by Ogre\+::\+Lod0\+Stripifier\+::$\sim$\+Lod0\+Stripifier().



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_vertex_index_data_8h}{Ogre\+Vertex\+Index\+Data.\+h}\end{DoxyCompactItemize}
