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


This class declares the usage of a single vertex buffer as a component of a complete \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}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\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 
\hyperlink{class_ogre_1_1_vertex_element_ab554b57536fc3eddde886d100c62791f}{Vertex\+Element} (unsigned short source, size\+\_\+t offset, \hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} the\+Type, \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 \hyperlink{class_ogre_1_1_vertex_declaration_a8b1a5f5fe0b7306da4c8b17357d45fac}{Vertex\+Declaration\+::add\+Element}. \end{DoxyCompactList}\item 
void \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 
void \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 \hyperlink{class_ogre_1_1_vertex_element_a92bbb64620fc9c0a0dfd64604c7ed2a4}{base\+Vertex\+Pointer\+To\+Element} (void $\ast$p\+Base, \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 \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 \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 
unsigned short \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 \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 
\hyperlink{group___render_system_ga0a62b3f2ede8992ff365bb013a8bc00d}{Vertex\+Element\+Semantic} \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 \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 \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 
\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} \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 \hyperlink{class_ogre_1_1_vertex_element_a4800f50a0f760a256e4a05a3672289a0}{operator==} (const \hyperlink{class_ogre_1_1_vertex_element}{Vertex\+Element} \&rhs) const
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static void \hyperlink{class_ogre_1_1_vertex_element_a6e79d12b90d3bdb7ed6ecd43e1a400b0}{convert\+Colour\+Value} (\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} src\+Type, \hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} dst\+Type, \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 \hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32} \hyperlink{class_ogre_1_1_vertex_element_ab4aba9e0430b1b330616827a5e99b54b}{convert\+Colour\+Value} (const \hyperlink{class_ogre_1_1_colour_value}{Colour\+Value} \&src, \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 \hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} \hyperlink{class_ogre_1_1_vertex_element_ab72d0360c1bea273ac8fecd88c9a9ec6}{get\+Base\+Type} (\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 \hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} \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 \hyperlink{class_ogre_1_1_vertex_element_ae62cacb2ca32a02851422f2e4f66be68}{get\+Type\+Count} (\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 \hyperlink{class_ogre_1_1_vertex_element_a0c6ec880969e888a995e5e7bcae73e6f}{get\+Type\+Size} (\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 \hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} \hyperlink{class_ogre_1_1_vertex_element_ae5e021d95c04f267cd8f4bcc8133aa8b}{multiply\+Type\+Count} (\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}


\subsection{Detailed Description}
This class declares the usage of a single vertex buffer as a component of a complete \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 \hyperlink{class_ogre_1_1_vertex_element}{Vertex\+Element} class does. 
\end{DoxyRemark}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_a91b0768c36a06062b941fedaf37901d8}\label{class_ogre_1_1_vertex_element_a91b0768c36a06062b941fedaf37901d8}} 
\index{Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!Vertex\+Element@{Vertex\+Element}}
\index{Vertex\+Element@{Vertex\+Element}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{Vertex\+Element()}{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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!Vertex\+Element@{Vertex\+Element}}
\index{Vertex\+Element@{Vertex\+Element}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{Vertex\+Element()}{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[{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}]{the\+Type,  }\item[{\hyperlink{group___render_system_ga0a62b3f2ede8992ff365bb013a8bc00d}{Vertex\+Element\+Semantic}}]{semantic,  }\item[{unsigned short}]{index = {\ttfamily 0} }\end{DoxyParamCaption})}



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



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_vertex_element_ac8c2b5a392e76b98b70fd9bb6d8c850e}\label{class_ogre_1_1_vertex_element_ac8c2b5a392e76b98b70fd9bb6d8c850e}} 
\index{Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Source@{get\+Source}}
\index{get\+Source@{get\+Source}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Source()}{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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Offset@{get\+Offset}}
\index{get\+Offset@{get\+Offset}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Offset()}{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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Type@{get\+Type}}
\index{get\+Type@{get\+Type}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Type()}{getType()}}
{\footnotesize\ttfamily \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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Semantic@{get\+Semantic}}
\index{get\+Semantic@{get\+Semantic}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Semantic()}{getSemantic()}}
{\footnotesize\ttfamily \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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Index@{get\+Index}}
\index{get\+Index@{get\+Index}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Index()}{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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Size@{get\+Size}}
\index{get\+Size@{get\+Size}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Size()}{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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Type\+Size@{get\+Type\+Size}}
\index{get\+Type\+Size@{get\+Type\+Size}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Type\+Size()}{getTypeSize()}}
{\footnotesize\ttfamily static size\+\_\+t Ogre\+::\+Vertex\+Element\+::get\+Type\+Size (\begin{DoxyParamCaption}\item[{\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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Type\+Count@{get\+Type\+Count}}
\index{get\+Type\+Count@{get\+Type\+Count}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Type\+Count()}{getTypeCount()}}
{\footnotesize\ttfamily static unsigned short Ogre\+::\+Vertex\+Element\+::get\+Type\+Count (\begin{DoxyParamCaption}\item[{\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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!multiply\+Type\+Count@{multiply\+Type\+Count}}
\index{multiply\+Type\+Count@{multiply\+Type\+Count}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{multiply\+Type\+Count()}{multiplyTypeCount()}}
{\footnotesize\ttfamily static \hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} Ogre\+::\+Vertex\+Element\+::multiply\+Type\+Count (\begin{DoxyParamCaption}\item[{\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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Base\+Type@{get\+Base\+Type}}
\index{get\+Base\+Type@{get\+Base\+Type}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Base\+Type()}{getBaseType()}}
{\footnotesize\ttfamily static \hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type} Ogre\+::\+Vertex\+Element\+::get\+Base\+Type (\begin{DoxyParamCaption}\item[{\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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!convert\+Colour\+Value@{convert\+Colour\+Value}}
\index{convert\+Colour\+Value@{convert\+Colour\+Value}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{convert\+Colour\+Value()}{convertColourValue()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily static void Ogre\+::\+Vertex\+Element\+::convert\+Colour\+Value (\begin{DoxyParamCaption}\item[{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}]{src\+Type,  }\item[{\hyperlink{group___render_system_ga027109503a988ba85f4c63b55082907f}{Vertex\+Element\+Type}}]{dst\+Type,  }\item[{\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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!convert\+Colour\+Value@{convert\+Colour\+Value}}
\index{convert\+Colour\+Value@{convert\+Colour\+Value}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{convert\+Colour\+Value()}{convertColourValue()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static \hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32} Ogre\+::\+Vertex\+Element\+::convert\+Colour\+Value (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_colour_value}{Colour\+Value} \&}]{src,  }\item[{\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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!get\+Best\+Colour\+Vertex\+Element\+Type@{get\+Best\+Colour\+Vertex\+Element\+Type}}
\index{get\+Best\+Colour\+Vertex\+Element\+Type@{get\+Best\+Colour\+Vertex\+Element\+Type}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Best\+Colour\+Vertex\+Element\+Type()}{getBestColourVertexElementType()}}
{\footnotesize\ttfamily static \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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!operator==@{operator==}}
\index{operator==@{operator==}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily bool Ogre\+::\+Vertex\+Element\+::operator== (\begin{DoxyParamCaption}\item[{const \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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}}
\index{base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{base\+Vertex\+Pointer\+To\+Element()}{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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}}
\index{base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{base\+Vertex\+Pointer\+To\+Element()}{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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}}
\index{base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{base\+Vertex\+Pointer\+To\+Element()}{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[{\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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}}
\index{base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{base\+Vertex\+Pointer\+To\+Element()}{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\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}!base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}}
\index{base\+Vertex\+Pointer\+To\+Element@{base\+Vertex\+Pointer\+To\+Element}!Ogre\+::\+Vertex\+Element@{Ogre\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{base\+Vertex\+Pointer\+To\+Element()}{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 
\hyperlink{_ogre_hardware_vertex_buffer_8h}{Ogre\+Hardware\+Vertex\+Buffer.\+h}\end{DoxyCompactItemize}
