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


Description of one vertex element.  




{\ttfamily \#include $<$A\+C\+G/\+G\+L/\+Vertex\+Declaration.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a01421_a218af690b0dc862e6e0e76b0222575d6}{set\+Byte\+Offset} (unsigned int \+\_\+offset)
\item 
unsigned int \hyperlink{a01421_aa6b9fc29e4dc3e89dffa8127c989707f}{get\+Byte\+Offset} () const 
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01421_ab73dc4aa9fb21b682d51ab40a89dddf1}{unsigned int \hyperlink{a01421_ab73dc4aa9fb21b682d51ab40a89dddf1}{type\+\_\+}}\label{a01421_ab73dc4aa9fb21b682d51ab40a89dddf1}

\begin{DoxyCompactList}\small\item\em G\+L\+\_\+\+F\+L\+O\+A\+T, G\+L\+\_\+\+U\+N\+S\+I\+G\+N\+E\+D\+\_\+\+B\+Y\+T\+E, G\+L\+\_\+\+I\+N\+T, ... \end{DoxyCompactList}\item 
\hypertarget{a01421_a800343ef67b3183cd124ab52e1fd30f4}{unsigned int \hyperlink{a01421_a800343ef67b3183cd124ab52e1fd30f4}{num\+Elements\+\_\+}}\label{a01421_a800343ef67b3183cd124ab52e1fd30f4}

\begin{DoxyCompactList}\small\item\em how many elements of type\+\_\+ \end{DoxyCompactList}\item 
\hypertarget{a01421_a8e1b800982724bbca6f87438c2320149}{\hyperlink{a03336_a8e20f3e5c21bdb768c1740315eeb122a}{V\+E\+R\+T\+E\+X\+\_\+\+U\+S\+A\+G\+E} \hyperlink{a01421_a8e1b800982724bbca6f87438c2320149}{usage\+\_\+}}\label{a01421_a8e1b800982724bbca6f87438c2320149}

\begin{DoxyCompactList}\small\item\em position, normal, shader input .. \end{DoxyCompactList}\item 
\hypertarget{a01421_ae8adec1f647bebb6ea4585b00d2a0c57}{const char $\ast$ \hyperlink{a01421_ae8adec1f647bebb6ea4585b00d2a0c57}{shader\+Input\+Name\+\_\+}}\label{a01421_ae8adec1f647bebb6ea4585b00d2a0c57}

\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\+E\+D 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\+E\+D \end{DoxyCompactList}\item 
\hypertarget{a01421_a8af5d7a030243e66f6cb4a222b5432f6}{const void $\ast$ \hyperlink{a01421_a8af5d7a030243e66f6cb4a222b5432f6}{pointer\+\_\+}}\label{a01421_a8af5d7a030243e66f6cb4a222b5432f6}

\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 
\hypertarget{a01421_a311ac081ee4f8e0d94c5347b73a8ba23}{unsigned int \hyperlink{a01421_a311ac081ee4f8e0d94c5347b73a8ba23}{divisor\+\_\+}}\label{a01421_a311ac081ee4f8e0d94c5347b73a8ba23}

\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 
\hypertarget{a01421_a8d87b0b61b066ca06c182327db461d20}{unsigned int \hyperlink{a01421_a8d87b0b61b066ca06c182327db461d20}{vbo\+\_\+}}\label{a01421_a8d87b0b61b066ca06c182327db461d20}

\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 84 of file Vertex\+Declaration.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a01421_aa6b9fc29e4dc3e89dffa8127c989707f}{\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[{get\+Byte\+Offset}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int A\+C\+G\+::\+Vertex\+Element\+::get\+Byte\+Offset (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{a01421_aa6b9fc29e4dc3e89dffa8127c989707f}
interpret pointer\+\_\+ as byte offset 

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

\hypertarget{a01421_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[{set\+Byte\+Offset}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Vertex\+Element\+::set\+Byte\+Offset (
\begin{DoxyParamCaption}
\item[{unsigned int}]{\+\_\+offset}
\end{DoxyParamCaption}
)}}\label{a01421_a218af690b0dc862e6e0e76b0222575d6}
interpret pointer\+\_\+ as byte offset 

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



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