\hypertarget{class_ogre_1_1_vertex_element}{}\doxysection{Ogre\+::Vertex\+Element Class Reference}
\label{class_ogre_1_1_vertex_element}\index{Ogre::VertexElement@{Ogre::VertexElement}}


This class declares the usage of a single vertex buffer as a component of a complete \mbox{\hyperlink{class_ogre_1_1_vertex_declaration}{Vertex\+Declaration}}.  




{\ttfamily \#include $<$Ogre\+Hardware\+Vertex\+Buffer.\+h$>$}



Inheritance diagram for Ogre\+::Vertex\+Element\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=198pt]{class_ogre_1_1_vertex_element__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_vertex_element_a91b0768c36a06062b941fedaf37901d8}{Vertex\+Element}} ()
\begin{DoxyCompactList}\small\item\em Constructor, should not be called directly, only needed because of list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_vertex_element_ab554b57536fc3eddde886d100c62791f}{Vertex\+Element}} (unsigned short source, size\+\_\+t offset, \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} the\+Type, \mbox{\hyperlink{group___render_system_ga0a62b3f2ede8992ff365bb013a8bc00d}{Vertex\+Element\+Semantic}} semantic, unsigned short index=0)
\begin{DoxyCompactList}\small\item\em Constructor, should not be called directly, call \mbox{\hyperlink{class_ogre_1_1_vertex_declaration_a8b1a5f5fe0b7306da4c8b17357d45fac}{Vertex\+Declaration\+::add\+Element}}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_vertex_element_a9b8f3ffb538558f3296baa2e24dcc379}{base\+Vertex\+Pointer\+To\+Element}} (void $\ast$p\+Base, float $\ast$$\ast$p\+Elem) const
\begin{DoxyCompactList}\small\item\em Adjusts a pointer to the base of a vertex to point at this element. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_vertex_element_a92bbb64620fc9c0a0dfd64604c7ed2a4}{base\+Vertex\+Pointer\+To\+Element}} (void $\ast$p\+Base, \mbox{\hyperlink{group___general_ga8c0fefd117985c6df93c4714f370bcd6}{R\+G\+BA}} $\ast$$\ast$p\+Elem) const
\begin{DoxyCompactList}\small\item\em Adjusts a pointer to the base of a vertex to point at this element. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_vertex_element_ae50c217348ab00b9bd38a2173651003a}{base\+Vertex\+Pointer\+To\+Element}} (void $\ast$p\+Base, unsigned char $\ast$$\ast$p\+Elem) const
\begin{DoxyCompactList}\small\item\em Adjusts a pointer to the base of a vertex to point at this element. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_vertex_element_a5724e2159432c9f6fa09050bc58fab33}{base\+Vertex\+Pointer\+To\+Element}} (void $\ast$p\+Base, unsigned short $\ast$$\ast$p\+Elem) const
\begin{DoxyCompactList}\small\item\em Adjusts a pointer to the base of a vertex to point at this element. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_vertex_element_ac9cb343e5775b5e92920ff6ad30efb35}{base\+Vertex\+Pointer\+To\+Element}} (void $\ast$p\+Base, void $\ast$$\ast$p\+Elem) const
\begin{DoxyCompactList}\small\item\em Adjusts a pointer to the base of a vertex to point at this element. \end{DoxyCompactList}\item 
unsigned short \mbox{\hyperlink{class_ogre_1_1_vertex_element_a3c8391bac424d1dc52e13de230c63fb2}{get\+Index}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the index of this element, only applicable for repeating elements. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_vertex_element_af6a1db40e39a289be0533339b694d2fe}{get\+Offset}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the offset into the buffer where this element starts. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___render_system_ga0a62b3f2ede8992ff365bb013a8bc00d}{Vertex\+Element\+Semantic}} \mbox{\hyperlink{class_ogre_1_1_vertex_element_a31b3fd61225a51edd31d7b7f310d10c9}{get\+Semantic}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the meaning of this element. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_vertex_element_a4118f67c890fac13b206e58fd11a5179}{get\+Size}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the size of this element in bytes. \end{DoxyCompactList}\item 
unsigned short \mbox{\hyperlink{class_ogre_1_1_vertex_element_ac8c2b5a392e76b98b70fd9bb6d8c850e}{get\+Source}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the vertex buffer index from where this element draws it\textquotesingle{}s values. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} \mbox{\hyperlink{class_ogre_1_1_vertex_element_a726c093aea50620eff88bf9d84e168bf}{get\+Type}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the data format of this element. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_vertex_element_a4800f50a0f760a256e4a05a3672289a0}{operator==}} (const \mbox{\hyperlink{class_ogre_1_1_vertex_element}{Vertex\+Element}} \&rhs) const
\end{DoxyCompactItemize}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{class_ogre_1_1_vertex_element_ab4aba9e0430b1b330616827a5e99b54b}{convert\+Colour\+Value}} (const \mbox{\hyperlink{class_ogre_1_1_colour_value}{Colour\+Value}} \&src, \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} dst)
\begin{DoxyCompactList}\small\item\em Utility method for converting colour to a packed 32-\/bit colour type. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{class_ogre_1_1_vertex_element_a6e79d12b90d3bdb7ed6ecd43e1a400b0}{convert\+Colour\+Value}} (\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} src\+Type, \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} dst\+Type, \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} $\ast$ptr)
\begin{DoxyCompactList}\small\item\em Utility method for converting colour from one packed 32-\/bit colour type to another. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} \mbox{\hyperlink{class_ogre_1_1_vertex_element_ab72d0360c1bea273ac8fecd88c9a9ec6}{get\+Base\+Type}} (\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} multi\+Type)
\begin{DoxyCompactList}\small\item\em Simple converter function which will turn a type into it\textquotesingle{}s single-\/value (or lowest multiple-\/value) equivalent -\/ makes switches on type easier. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} \mbox{\hyperlink{class_ogre_1_1_vertex_element_afd91fd79991fc24e48e986672b2250f4}{get\+Best\+Colour\+Vertex\+Element\+Type}} (void)
\begin{DoxyCompactList}\small\item\em Utility method to get the most appropriate packed colour vertex element format. \end{DoxyCompactList}\item 
static unsigned short \mbox{\hyperlink{class_ogre_1_1_vertex_element_ae62cacb2ca32a02851422f2e4f66be68}{get\+Type\+Count}} (\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} etype)
\begin{DoxyCompactList}\small\item\em Utility method which returns the count of values in a given type (result for colors may be counter-\/intuitive) \end{DoxyCompactList}\item 
static size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_vertex_element_a0c6ec880969e888a995e5e7bcae73e6f}{get\+Type\+Size}} (\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} etype)
\begin{DoxyCompactList}\small\item\em Utility method for helping to calculate offsets. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} \mbox{\hyperlink{class_ogre_1_1_vertex_element_ae5e021d95c04f267cd8f4bcc8133aa8b}{multiply\+Type\+Count}} (\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} base\+Type, unsigned short count)
\begin{DoxyCompactList}\small\item\em Simple converter function which will return a type large enough to hold \textquotesingle{}count\textquotesingle{} values of the same type as the values in \textquotesingle{}base\+Type\textquotesingle{}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This class declares the usage of a single vertex buffer as a component of a complete \mbox{\hyperlink{class_ogre_1_1_vertex_declaration}{Vertex\+Declaration}}. 

\begin{DoxyRemark}{Remarks}
Several vertex buffers can be used to supply the input geometry for a rendering operation, and in each case a vertex buffer can be used in different ways for different operations; the buffer itself does not define the semantics (position, normal etc), the \mbox{\hyperlink{class_ogre_1_1_vertex_element}{Vertex\+Element}} class does. 
\end{DoxyRemark}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a91b0768c36a06062b941fedaf37901d8}\label{class_ogre_1_1_vertex_element_a91b0768c36a06062b941fedaf37901d8}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!VertexElement@{VertexElement}}
\index{VertexElement@{VertexElement}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{VertexElement()}{VertexElement()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Ogre\+::\+Vertex\+Element\+::\+Vertex\+Element (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Constructor, should not be called directly, only needed because of list. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_ab554b57536fc3eddde886d100c62791f}\label{class_ogre_1_1_vertex_element_ab554b57536fc3eddde886d100c62791f}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!VertexElement@{VertexElement}}
\index{VertexElement@{VertexElement}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{VertexElement()}{VertexElement()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Ogre\+::\+Vertex\+Element\+::\+Vertex\+Element (\begin{DoxyParamCaption}\item[{unsigned short}]{source,  }\item[{size\+\_\+t}]{offset,  }\item[{\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}}]{the\+Type,  }\item[{\mbox{\hyperlink{group___render_system_ga0a62b3f2ede8992ff365bb013a8bc00d}{Vertex\+Element\+Semantic}}}]{semantic,  }\item[{unsigned short}]{index = {\ttfamily 0} }\end{DoxyParamCaption})}



Constructor, should not be called directly, call \mbox{\hyperlink{class_ogre_1_1_vertex_declaration_a8b1a5f5fe0b7306da4c8b17357d45fac}{Vertex\+Declaration\+::add\+Element}}. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_ac8c2b5a392e76b98b70fd9bb6d8c850e}\label{class_ogre_1_1_vertex_element_ac8c2b5a392e76b98b70fd9bb6d8c850e}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getSource@{getSource}}
\index{getSource@{getSource}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getSource()}{getSource()}}
{\footnotesize\ttfamily unsigned short Ogre\+::\+Vertex\+Element\+::get\+Source (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the vertex buffer index from where this element draws it\textquotesingle{}s values. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_af6a1db40e39a289be0533339b694d2fe}\label{class_ogre_1_1_vertex_element_af6a1db40e39a289be0533339b694d2fe}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getOffset@{getOffset}}
\index{getOffset@{getOffset}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getOffset()}{getOffset()}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Vertex\+Element\+::get\+Offset (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the offset into the buffer where this element starts. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a726c093aea50620eff88bf9d84e168bf}\label{class_ogre_1_1_vertex_element_a726c093aea50620eff88bf9d84e168bf}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getType@{getType}}
\index{getType@{getType}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getType()}{getType()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} Ogre\+::\+Vertex\+Element\+::get\+Type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the data format of this element. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a31b3fd61225a51edd31d7b7f310d10c9}\label{class_ogre_1_1_vertex_element_a31b3fd61225a51edd31d7b7f310d10c9}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getSemantic@{getSemantic}}
\index{getSemantic@{getSemantic}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getSemantic()}{getSemantic()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___render_system_ga0a62b3f2ede8992ff365bb013a8bc00d}{Vertex\+Element\+Semantic}} Ogre\+::\+Vertex\+Element\+::get\+Semantic (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the meaning of this element. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a3c8391bac424d1dc52e13de230c63fb2}\label{class_ogre_1_1_vertex_element_a3c8391bac424d1dc52e13de230c63fb2}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getIndex@{getIndex}}
\index{getIndex@{getIndex}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getIndex()}{getIndex()}}
{\footnotesize\ttfamily unsigned short Ogre\+::\+Vertex\+Element\+::get\+Index (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the index of this element, only applicable for repeating elements. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a4118f67c890fac13b206e58fd11a5179}\label{class_ogre_1_1_vertex_element_a4118f67c890fac13b206e58fd11a5179}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getSize@{getSize}}
\index{getSize@{getSize}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getSize()}{getSize()}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Vertex\+Element\+::get\+Size (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}



Gets the size of this element in bytes. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a0c6ec880969e888a995e5e7bcae73e6f}\label{class_ogre_1_1_vertex_element_a0c6ec880969e888a995e5e7bcae73e6f}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getTypeSize@{getTypeSize}}
\index{getTypeSize@{getTypeSize}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getTypeSize()}{getTypeSize()}}
{\footnotesize\ttfamily static size\+\_\+t Ogre\+::\+Vertex\+Element\+::get\+Type\+Size (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}}]{etype }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Utility method for helping to calculate offsets. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_ae62cacb2ca32a02851422f2e4f66be68}\label{class_ogre_1_1_vertex_element_ae62cacb2ca32a02851422f2e4f66be68}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getTypeCount@{getTypeCount}}
\index{getTypeCount@{getTypeCount}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getTypeCount()}{getTypeCount()}}
{\footnotesize\ttfamily static unsigned short Ogre\+::\+Vertex\+Element\+::get\+Type\+Count (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}}]{etype }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Utility method which returns the count of values in a given type (result for colors may be counter-\/intuitive) 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_ae5e021d95c04f267cd8f4bcc8133aa8b}\label{class_ogre_1_1_vertex_element_ae5e021d95c04f267cd8f4bcc8133aa8b}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!multiplyTypeCount@{multiplyTypeCount}}
\index{multiplyTypeCount@{multiplyTypeCount}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{multiplyTypeCount()}{multiplyTypeCount()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} Ogre\+::\+Vertex\+Element\+::multiply\+Type\+Count (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}}]{base\+Type,  }\item[{unsigned short}]{count }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Simple converter function which will return a type large enough to hold \textquotesingle{}count\textquotesingle{} values of the same type as the values in \textquotesingle{}base\+Type\textquotesingle{}. 

The \textquotesingle{}base\+Type\textquotesingle{} parameter should have the smallest count available. The return type may have the count rounded up to the next multiple of 4 bytes. Byte types will always return a 4-\/count type, while short types will return either a 2-\/count or 4-\/count type. \mbox{\Hypertarget{class_ogre_1_1_vertex_element_ab72d0360c1bea273ac8fecd88c9a9ec6}\label{class_ogre_1_1_vertex_element_ab72d0360c1bea273ac8fecd88c9a9ec6}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getBaseType@{getBaseType}}
\index{getBaseType@{getBaseType}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getBaseType()}{getBaseType()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} Ogre\+::\+Vertex\+Element\+::get\+Base\+Type (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}}]{multi\+Type }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Simple converter function which will turn a type into it\textquotesingle{}s single-\/value (or lowest multiple-\/value) equivalent -\/ makes switches on type easier. 

May give counter-\/intuitive results with bytes or shorts. \mbox{\Hypertarget{class_ogre_1_1_vertex_element_a6e79d12b90d3bdb7ed6ecd43e1a400b0}\label{class_ogre_1_1_vertex_element_a6e79d12b90d3bdb7ed6ecd43e1a400b0}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!convertColourValue@{convertColourValue}}
\index{convertColourValue@{convertColourValue}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{convertColourValue()}{convertColourValue()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily static void Ogre\+::\+Vertex\+Element\+::convert\+Colour\+Value (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}}]{src\+Type,  }\item[{\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}}]{dst\+Type,  }\item[{\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} $\ast$}]{ptr }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Utility method for converting colour from one packed 32-\/bit colour type to another. 


\begin{DoxyParams}{Parameters}
{\em src\+Type} & The source type \\
\hline
{\em dst\+Type} & The destination type \\
\hline
{\em ptr} & Read / write value to change \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_ab4aba9e0430b1b330616827a5e99b54b}\label{class_ogre_1_1_vertex_element_ab4aba9e0430b1b330616827a5e99b54b}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!convertColourValue@{convertColourValue}}
\index{convertColourValue@{convertColourValue}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{convertColourValue()}{convertColourValue()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Vertex\+Element\+::convert\+Colour\+Value (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_colour_value}{Colour\+Value}} \&}]{src,  }\item[{\mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}}]{dst }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Utility method for converting colour to a packed 32-\/bit colour type. 


\begin{DoxyParams}{Parameters}
{\em src} & source colour \\
\hline
{\em dst} & The destination type \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_afd91fd79991fc24e48e986672b2250f4}\label{class_ogre_1_1_vertex_element_afd91fd79991fc24e48e986672b2250f4}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!getBestColourVertexElementType@{getBestColourVertexElementType}}
\index{getBestColourVertexElementType@{getBestColourVertexElementType}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{getBestColourVertexElementType()}{getBestColourVertexElementType()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}} Ogre\+::\+Vertex\+Element\+::get\+Best\+Colour\+Vertex\+Element\+Type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Utility method to get the most appropriate packed colour vertex element format. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a4800f50a0f760a256e4a05a3672289a0}\label{class_ogre_1_1_vertex_element_a4800f50a0f760a256e4a05a3672289a0}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!operator==@{operator==}}
\index{operator==@{operator==}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily bool Ogre\+::\+Vertex\+Element\+::operator== (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_vertex_element}{Vertex\+Element}} \&}]{rhs }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_vertex_element_ac9cb343e5775b5e92920ff6ad30efb35}\label{class_ogre_1_1_vertex_element_ac9cb343e5775b5e92920ff6ad30efb35}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!baseVertexPointerToElement@{baseVertexPointerToElement}}
\index{baseVertexPointerToElement@{baseVertexPointerToElement}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{baseVertexPointerToElement()}{baseVertexPointerToElement()}\hspace{0.1cm}{\footnotesize\ttfamily [1/5]}}
{\footnotesize\ttfamily void Ogre\+::\+Vertex\+Element\+::base\+Vertex\+Pointer\+To\+Element (\begin{DoxyParamCaption}\item[{void $\ast$}]{p\+Base,  }\item[{void $\ast$$\ast$}]{p\+Elem }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Adjusts a pointer to the base of a vertex to point at this element. 

\begin{DoxyRemark}{Remarks}
This variant is for void pointers, passed as a parameter because we can\textquotesingle{}t rely on covariant return types. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Base} & Pointer to the start of a vertex in this buffer. \\
\hline
{\em p\+Elem} & Pointer to a pointer which will be set to the start of this element. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a9b8f3ffb538558f3296baa2e24dcc379}\label{class_ogre_1_1_vertex_element_a9b8f3ffb538558f3296baa2e24dcc379}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!baseVertexPointerToElement@{baseVertexPointerToElement}}
\index{baseVertexPointerToElement@{baseVertexPointerToElement}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{baseVertexPointerToElement()}{baseVertexPointerToElement()}\hspace{0.1cm}{\footnotesize\ttfamily [2/5]}}
{\footnotesize\ttfamily void Ogre\+::\+Vertex\+Element\+::base\+Vertex\+Pointer\+To\+Element (\begin{DoxyParamCaption}\item[{void $\ast$}]{p\+Base,  }\item[{float $\ast$$\ast$}]{p\+Elem }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Adjusts a pointer to the base of a vertex to point at this element. 

\begin{DoxyRemark}{Remarks}
This variant is for float pointers, passed as a parameter because we can\textquotesingle{}t rely on covariant return types. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Base} & Pointer to the start of a vertex in this buffer. \\
\hline
{\em p\+Elem} & Pointer to a pointer which will be set to the start of this element. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a92bbb64620fc9c0a0dfd64604c7ed2a4}\label{class_ogre_1_1_vertex_element_a92bbb64620fc9c0a0dfd64604c7ed2a4}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!baseVertexPointerToElement@{baseVertexPointerToElement}}
\index{baseVertexPointerToElement@{baseVertexPointerToElement}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{baseVertexPointerToElement()}{baseVertexPointerToElement()}\hspace{0.1cm}{\footnotesize\ttfamily [3/5]}}
{\footnotesize\ttfamily void Ogre\+::\+Vertex\+Element\+::base\+Vertex\+Pointer\+To\+Element (\begin{DoxyParamCaption}\item[{void $\ast$}]{p\+Base,  }\item[{\mbox{\hyperlink{group___general_ga8c0fefd117985c6df93c4714f370bcd6}{R\+G\+BA}} $\ast$$\ast$}]{p\+Elem }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Adjusts a pointer to the base of a vertex to point at this element. 

\begin{DoxyRemark}{Remarks}
This variant is for R\+G\+BA pointers, passed as a parameter because we can\textquotesingle{}t rely on covariant return types. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Base} & Pointer to the start of a vertex in this buffer. \\
\hline
{\em p\+Elem} & Pointer to a pointer which will be set to the start of this element. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_ae50c217348ab00b9bd38a2173651003a}\label{class_ogre_1_1_vertex_element_ae50c217348ab00b9bd38a2173651003a}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!baseVertexPointerToElement@{baseVertexPointerToElement}}
\index{baseVertexPointerToElement@{baseVertexPointerToElement}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{baseVertexPointerToElement()}{baseVertexPointerToElement()}\hspace{0.1cm}{\footnotesize\ttfamily [4/5]}}
{\footnotesize\ttfamily void Ogre\+::\+Vertex\+Element\+::base\+Vertex\+Pointer\+To\+Element (\begin{DoxyParamCaption}\item[{void $\ast$}]{p\+Base,  }\item[{unsigned char $\ast$$\ast$}]{p\+Elem }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Adjusts a pointer to the base of a vertex to point at this element. 

\begin{DoxyRemark}{Remarks}
This variant is for char pointers, passed as a parameter because we can\textquotesingle{}t rely on covariant return types. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Base} & Pointer to the start of a vertex in this buffer. \\
\hline
{\em p\+Elem} & Pointer to a pointer which will be set to the start of this element. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a5724e2159432c9f6fa09050bc58fab33}\label{class_ogre_1_1_vertex_element_a5724e2159432c9f6fa09050bc58fab33}} 
\index{Ogre::VertexElement@{Ogre::VertexElement}!baseVertexPointerToElement@{baseVertexPointerToElement}}
\index{baseVertexPointerToElement@{baseVertexPointerToElement}!Ogre::VertexElement@{Ogre::VertexElement}}
\doxysubsubsection{\texorpdfstring{baseVertexPointerToElement()}{baseVertexPointerToElement()}\hspace{0.1cm}{\footnotesize\ttfamily [5/5]}}
{\footnotesize\ttfamily void Ogre\+::\+Vertex\+Element\+::base\+Vertex\+Pointer\+To\+Element (\begin{DoxyParamCaption}\item[{void $\ast$}]{p\+Base,  }\item[{unsigned short $\ast$$\ast$}]{p\+Elem }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Adjusts a pointer to the base of a vertex to point at this element. 

\begin{DoxyRemark}{Remarks}
This variant is for ushort pointers, passed as a parameter because we can\textquotesingle{}t rely on covariant return types. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Base} & Pointer to the start of a vertex in this buffer. \\
\hline
{\em p\+Elem} & Pointer to a pointer which will be set to the start of this element. \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_hardware_vertex_buffer_8h}{Ogre\+Hardware\+Vertex\+Buffer.\+h}}\end{DoxyCompactItemize}
