\hypertarget{a07592}{}\section{A\+CG\+:\+:Vertex\+Element Struct Reference}
\label{a07592}\index{A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}}


Description of one vertex element.  




{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+G\+L/\+Vertex\+Declaration.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a07592_a218af690b0dc862e6e0e76b0222575d6}{set\+Byte\+Offset} (unsigned int \+\_\+offset)
\item 
unsigned int \hyperlink{a07592_a9c8b8b1c7981811f9487cd505f17185a}{get\+Byte\+Offset} () const
\item 
bool \hyperlink{a07592_a2c0953467f104e95f6bd39674936f41d}{operator==} (const \hyperlink{a07592}{Vertex\+Element} \&\+\_\+other) const
\item 
bool \hyperlink{a07592_abe1322971e128a13c5e3e9377a5719ef}{operator!=} (const \hyperlink{a07592}{Vertex\+Element} \&\+\_\+other) const
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07592_ab73dc4aa9fb21b682d51ab40a89dddf1}\label{a07592_ab73dc4aa9fb21b682d51ab40a89dddf1}} 
unsigned int \hyperlink{a07592_ab73dc4aa9fb21b682d51ab40a89dddf1}{type\+\_\+}
\begin{DoxyCompactList}\small\item\em G\+L\+\_\+\+F\+L\+O\+AT, G\+L\+\_\+\+U\+N\+S\+I\+G\+N\+E\+D\+\_\+\+B\+Y\+TE, G\+L\+\_\+\+I\+NT, ... \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07592_a800343ef67b3183cd124ab52e1fd30f4}\label{a07592_a800343ef67b3183cd124ab52e1fd30f4}} 
unsigned int \hyperlink{a07592_a800343ef67b3183cd124ab52e1fd30f4}{num\+Elements\+\_\+}
\begin{DoxyCompactList}\small\item\em how many elements of type\+\_\+ \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07592_a8e1b800982724bbca6f87438c2320149}\label{a07592_a8e1b800982724bbca6f87438c2320149}} 
\hyperlink{a06176_a8e20f3e5c21bdb768c1740315eeb122a}{V\+E\+R\+T\+E\+X\+\_\+\+U\+S\+A\+GE} \hyperlink{a07592_a8e1b800982724bbca6f87438c2320149}{usage\+\_\+}
\begin{DoxyCompactList}\small\item\em position, normal, shader input .. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07592_ae8adec1f647bebb6ea4585b00d2a0c57}\label{a07592_ae8adec1f647bebb6ea4585b00d2a0c57}} 
const char $\ast$ \hyperlink{a07592_ae8adec1f647bebb6ea4585b00d2a0c57}{shader\+Input\+Name\+\_\+}
\begin{DoxyCompactList}\small\item\em set shader input name, if usage\+\_\+ = V\+E\+R\+T\+E\+X\+\_\+\+U\+S\+A\+G\+E\+\_\+\+U\+S\+E\+R\+\_\+\+D\+E\+F\+I\+N\+ED otherwise this is set automatically, if usage\+\_\+ != V\+E\+R\+T\+E\+X\+\_\+\+U\+S\+A\+G\+E\+\_\+\+U\+S\+E\+R\+\_\+\+D\+E\+F\+I\+N\+ED \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07592_a8af5d7a030243e66f6cb4a222b5432f6}\label{a07592_a8af5d7a030243e66f6cb4a222b5432f6}} 
const void $\ast$ \hyperlink{a07592_a8af5d7a030243e66f6cb4a222b5432f6}{pointer\+\_\+}
\begin{DoxyCompactList}\small\item\em Offset in bytes to the first occurrence of this element in vertex buffer; Or address to vertex data in system memory. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07592_a311ac081ee4f8e0d94c5347b73a8ba23}\label{a07592_a311ac081ee4f8e0d94c5347b73a8ba23}} 
unsigned int \hyperlink{a07592_a311ac081ee4f8e0d94c5347b73a8ba23}{divisor\+\_\+}
\begin{DoxyCompactList}\small\item\em For instanced rendering\+: Step rate describing how many instances are drawn before advancing to the next element. Must be 0 if this element is not per instance data. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07592_a8d87b0b61b066ca06c182327db461d20}\label{a07592_a8d87b0b61b066ca06c182327db461d20}} 
unsigned int \hyperlink{a07592_a8d87b0b61b066ca06c182327db461d20}{vbo\+\_\+}
\begin{DoxyCompactList}\small\item\em Explicit vbo source of this element, set to 0 if the buffer bound at the time of activating the declaration should be used instead. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Description of one vertex element. 



Definition at line 78 of file Vertex\+Declaration.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a07592_a9c8b8b1c7981811f9487cd505f17185a}\label{a07592_a9c8b8b1c7981811f9487cd505f17185a}} 
\index{A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}!get\+Byte\+Offset@{get\+Byte\+Offset}}
\index{get\+Byte\+Offset@{get\+Byte\+Offset}!A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{get\+Byte\+Offset()}{getByteOffset()}}
{\footnotesize\ttfamily unsigned int A\+C\+G\+::\+Vertex\+Element\+::get\+Byte\+Offset (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

interpret pointer\+\_\+ as byte offset 

Definition at line 77 of file Vertex\+Declaration.\+cc.

\mbox{\Hypertarget{a07592_abe1322971e128a13c5e3e9377a5719ef}\label{a07592_abe1322971e128a13c5e3e9377a5719ef}} 
\index{A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{operator"!=()}{operator!=()}}
{\footnotesize\ttfamily bool A\+C\+G\+::\+Vertex\+Element\+::operator!= (\begin{DoxyParamCaption}\item[{const \hyperlink{a07592}{Vertex\+Element} \&}]{\+\_\+other }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

comparison operator 

Definition at line 104 of file Vertex\+Declaration.\+hh.

\mbox{\Hypertarget{a07592_a2c0953467f104e95f6bd39674936f41d}\label{a07592_a2c0953467f104e95f6bd39674936f41d}} 
\index{A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}!operator==@{operator==}}
\index{operator==@{operator==}!A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily bool A\+C\+G\+::\+Vertex\+Element\+::operator== (\begin{DoxyParamCaption}\item[{const \hyperlink{a07592}{Vertex\+Element} \&}]{\+\_\+other }\end{DoxyParamCaption}) const}

comparison operator 

Definition at line 91 of file Vertex\+Declaration.\+cc.

\mbox{\Hypertarget{a07592_a218af690b0dc862e6e0e76b0222575d6}\label{a07592_a218af690b0dc862e6e0e76b0222575d6}} 
\index{A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}!set\+Byte\+Offset@{set\+Byte\+Offset}}
\index{set\+Byte\+Offset@{set\+Byte\+Offset}!A\+C\+G\+::\+Vertex\+Element@{A\+C\+G\+::\+Vertex\+Element}}
\subsubsection{\texorpdfstring{set\+Byte\+Offset()}{setByteOffset()}}
{\footnotesize\ttfamily void A\+C\+G\+::\+Vertex\+Element\+::set\+Byte\+Offset (\begin{DoxyParamCaption}\item[{unsigned int}]{\+\_\+offset }\end{DoxyParamCaption})}

interpret pointer\+\_\+ as byte offset 

Definition at line 63 of file Vertex\+Declaration.\+cc.



The documentation for this struct was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+G\+L/Vertex\+Declaration.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+G\+L/Vertex\+Declaration.\+cc\end{DoxyCompactItemize}
