\hypertarget{class_ogre_1_1_hardware_buffer_manager_base}{}\section{Ogre\+:\+:Hardware\+Buffer\+Manager\+Base Class Reference}
\label{class_ogre_1_1_hardware_buffer_manager_base}\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}


Base definition of a hardware buffer manager.  




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



Inheritance diagram for Ogre\+:\+:Hardware\+Buffer\+Manager\+Base\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_hardware_buffer_manager_base__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08fa}{Buffer\+License\+Type} \{ \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08faa372ccf538e8a6022bba092d2b47f4fdb}{B\+L\+T\+\_\+\+M\+A\+N\+U\+A\+L\+\_\+\+R\+E\+L\+E\+A\+SE}, 
\hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08faa994cf0191de83556e3c1e6cf30cd6acb}{B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE}
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_hardware_buffer_manager_base_aa1f5ef725fdeacc6018e1dee3b7eded5}{Hardware\+Buffer\+Manager\+Base} ()
\item 
virtual \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_abc50f8bac0fad6710aa205d0c4e295c4}{$\sim$\+Hardware\+Buffer\+Manager\+Base} ()
\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a876ce18832783cd168f4e55d989c3f1c}{\+\_\+force\+Release\+Buffer\+Copies} (const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&source\+Buffer)
\begin{DoxyCompactList}\small\item\em Internal method that forces the release of copies of a given buffer. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a8cd2588a1b57f4b417d6816f7ddb5584}{\+\_\+force\+Release\+Buffer\+Copies} (\hyperlink{class_ogre_1_1_hardware_vertex_buffer}{Hardware\+Vertex\+Buffer} $\ast$source\+Buffer)
\begin{DoxyCompactList}\small\item\em Internal method that forces the release of copies of a given buffer. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a01c05c63b98f45df312660e724d95320}{\+\_\+free\+Unused\+Buffer\+Copies} (void)
\begin{DoxyCompactList}\small\item\em Free all unused vertex buffer copies. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a45fe3ad0964310d9b150d45eaddf67d3}{\+\_\+notify\+Counter\+Buffer\+Destroyed} (\hyperlink{class_ogre_1_1_hardware_counter_buffer}{Hardware\+Counter\+Buffer} $\ast$buf)
\begin{DoxyCompactList}\small\item\em Notification that at hardware counter buffer has been destroyed. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_aa12ae6a67af715b2be80182bd05abb46}{\+\_\+notify\+Index\+Buffer\+Destroyed} (\hyperlink{class_ogre_1_1_hardware_index_buffer}{Hardware\+Index\+Buffer} $\ast$buf)
\begin{DoxyCompactList}\small\item\em Notification that a hardware index buffer has been destroyed. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_ad19793152eef356380827edb755c613e}{\+\_\+notify\+Uniform\+Buffer\+Destroyed} (\hyperlink{class_ogre_1_1_hardware_uniform_buffer}{Hardware\+Uniform\+Buffer} $\ast$buf)
\begin{DoxyCompactList}\small\item\em Notification that at hardware uniform buffer has been destroyed. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a29b2e243bab8522ae27ec23268ea154a}{\+\_\+notify\+Vertex\+Buffer\+Destroyed} (\hyperlink{class_ogre_1_1_hardware_vertex_buffer}{Hardware\+Vertex\+Buffer} $\ast$buf)
\begin{DoxyCompactList}\small\item\em Notification that a hardware vertex buffer has been destroyed. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a5551674a13abf8d3458d2798e58d7cd9}{\+\_\+release\+Buffer\+Copies} (bool force\+Free\+Unused=false)
\begin{DoxyCompactList}\small\item\em Internal method for releasing all temporary buffers which have been allocated using B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE; is called by O\+G\+RE. \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a557fa7f938bee48841e21e995eb095d6}{allocate\+Vertex\+Buffer\+Copy} (const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&source\+Buffer, \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08fa}{Buffer\+License\+Type} license\+Type, \hyperlink{class_ogre_1_1_hardware_buffer_licensee}{Hardware\+Buffer\+Licensee} $\ast$licensee, bool copy\+Data=false)
\begin{DoxyCompactList}\small\item\em Allocates a copy of a given vertex buffer. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_a148bab0ca4ae7eba547b07d880e809b1}{Hardware\+Counter\+Buffer\+Shared\+Ptr} \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_aec7eea2d5d1853ea29b412f43986140b}{create\+Counter\+Buffer} (size\+\_\+t size\+Bytes, \hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage} usage=\hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630a29ff2e0fd2b408359e84291b27282516}{Hardware\+Buffer\+::\+H\+B\+U\+\_\+\+D\+Y\+N\+A\+M\+I\+C\+\_\+\+W\+R\+I\+T\+E\+\_\+\+O\+N\+L\+Y\+\_\+\+D\+I\+S\+C\+A\+R\+D\+A\+B\+LE}, bool use\+Shadow\+Buffer=false, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&name=\char`\"{}\char`\"{})=0
\begin{DoxyCompactList}\small\item\em Create counter buffer. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_ae906cf8e579ba8ade19879ec05b1a456}{Hardware\+Index\+Buffer\+Shared\+Ptr} \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_ae46262b1cc1e8bfe136e9bb203894c41}{create\+Index\+Buffer} (\hyperlink{class_ogre_1_1_hardware_index_buffer_a25ba4923e015d46de162f7cc4c256326}{Hardware\+Index\+Buffer\+::\+Index\+Type} itype, size\+\_\+t num\+Indexes, \hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage} usage, bool use\+Shadow\+Buffer=false)=0
\begin{DoxyCompactList}\small\item\em Create a hardware index buffer. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_a00531851f476b9a8432258652828902a}{Render\+To\+Vertex\+Buffer\+Shared\+Ptr} \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a830cd072c0e063e729b67201f04492a1}{create\+Render\+To\+Vertex\+Buffer} ()=0
\begin{DoxyCompactList}\small\item\em Create a render to vertex buffer. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_a0a6c851c5f3de495932845bb09db1f20}{Hardware\+Uniform\+Buffer\+Shared\+Ptr} \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_adeb459425f647d9b9077bbea77a43f27}{create\+Uniform\+Buffer} (size\+\_\+t size\+Bytes, \hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage} usage=\hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630a29ff2e0fd2b408359e84291b27282516}{Hardware\+Buffer\+::\+H\+B\+U\+\_\+\+D\+Y\+N\+A\+M\+I\+C\+\_\+\+W\+R\+I\+T\+E\+\_\+\+O\+N\+L\+Y\+\_\+\+D\+I\+S\+C\+A\+R\+D\+A\+B\+LE}, bool use\+Shadow\+Buffer=false, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&name=\char`\"{}\char`\"{})=0
\begin{DoxyCompactList}\small\item\em Create uniform buffer. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a6009815139b407d20347dd3e2262e5ad}{create\+Vertex\+Buffer} (size\+\_\+t vertex\+Size, size\+\_\+t num\+Verts, \hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage} usage, bool use\+Shadow\+Buffer=false)=0
\begin{DoxyCompactList}\small\item\em Create a hardware vertex buffer. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_vertex_buffer_binding}{Vertex\+Buffer\+Binding} $\ast$ \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_acbde393716ec1057024cdff4d3282913}{create\+Vertex\+Buffer\+Binding} (void)
\begin{DoxyCompactList}\small\item\em Creates a new \hyperlink{class_ogre_1_1_vertex_buffer_binding}{Vertex\+Buffer\+Binding}. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_vertex_declaration}{Vertex\+Declaration} $\ast$ \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_abe3ea209174c3a40286dde425addb814}{create\+Vertex\+Declaration} (void)
\begin{DoxyCompactList}\small\item\em Creates a new vertex declaration. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a7c2868897d9a417b523f2fe9420f1e22}{destroy\+Vertex\+Buffer\+Binding} (\hyperlink{class_ogre_1_1_vertex_buffer_binding}{Vertex\+Buffer\+Binding} $\ast$binding)
\begin{DoxyCompactList}\small\item\em Destroys a \hyperlink{class_ogre_1_1_vertex_buffer_binding}{Vertex\+Buffer\+Binding}. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_ae3b729879133ff816e15f73e921c3b18}{destroy\+Vertex\+Declaration} (\hyperlink{class_ogre_1_1_vertex_declaration}{Vertex\+Declaration} $\ast$decl)
\begin{DoxyCompactList}\small\item\em Destroys a vertex declaration. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a1deff999bf2f7fa437609fca417810e9}{register\+Vertex\+Buffer\+Source\+And\+Copy} (const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&source\+Buffer, const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&copy)
\begin{DoxyCompactList}\small\item\em Registers a vertex buffer as a copy of another. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_acca9ea14315ef17d74f6ab972d9a1ec8}{release\+Vertex\+Buffer\+Copy} (const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&buffer\+Copy)
\begin{DoxyCompactList}\small\item\em Manually release a vertex buffer copy for others to subsequently use. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_ab717df387ec6c1e119ed2ac0e2c9a54b}{touch\+Vertex\+Buffer\+Copy} (const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&buffer\+Copy)
\begin{DoxyCompactList}\small\item\em Tell engine that the vertex buffer copy intent to reuse. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base definition of a hardware buffer manager. 

\begin{DoxyRemark}{Remarks}
This class is deliberately not a \hyperlink{class_ogre_1_1_singleton}{Singleton}, so that multiple types can exist at once (notably \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_base}{Default\+Hardware\+Buffer\+Manager\+Base}). The \hyperlink{class_ogre_1_1_singleton}{Singleton} is add via the inheritance in \hyperlink{class_ogre_1_1_hardware_buffer_manager}{Hardware\+Buffer\+Manager} below. 
\end{DoxyRemark}


\subsection{Member Enumeration Documentation}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08fa}\label{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08fa}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!Buffer\+License\+Type@{Buffer\+License\+Type}}
\index{Buffer\+License\+Type@{Buffer\+License\+Type}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{Buffer\+License\+Type}{BufferLicenseType}}
{\footnotesize\ttfamily enum \hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08fa}{Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+Buffer\+License\+Type}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{B\+L\+T\+\_\+\+M\+A\+N\+U\+A\+L\+\_\+\+R\+E\+L\+E\+A\+SE@{B\+L\+T\+\_\+\+M\+A\+N\+U\+A\+L\+\_\+\+R\+E\+L\+E\+A\+SE}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!B\+L\+T\+\_\+\+M\+A\+N\+U\+A\+L\+\_\+\+R\+E\+L\+E\+A\+SE@{B\+L\+T\+\_\+\+M\+A\+N\+U\+A\+L\+\_\+\+R\+E\+L\+E\+A\+SE}}}\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08faa372ccf538e8a6022bba092d2b47f4fdb}\label{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08faa372ccf538e8a6022bba092d2b47f4fdb}} 
B\+L\+T\+\_\+\+M\+A\+N\+U\+A\+L\+\_\+\+R\+E\+L\+E\+A\+SE&Licensee will only release buffer when it says so. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE@{B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE@{B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE}}}\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08faa994cf0191de83556e3c1e6cf30cd6acb}\label{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08faa994cf0191de83556e3c1e6cf30cd6acb}} 
B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE&Licensee can have license revoked. \\
\hline

\end{DoxyEnumFields}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_aa1f5ef725fdeacc6018e1dee3b7eded5}\label{class_ogre_1_1_hardware_buffer_manager_base_aa1f5ef725fdeacc6018e1dee3b7eded5}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!Hardware\+Buffer\+Manager\+Base@{Hardware\+Buffer\+Manager\+Base}}
\index{Hardware\+Buffer\+Manager\+Base@{Hardware\+Buffer\+Manager\+Base}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{Hardware\+Buffer\+Manager\+Base()}{HardwareBufferManagerBase()}}
{\footnotesize\ttfamily Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+Hardware\+Buffer\+Manager\+Base (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_abc50f8bac0fad6710aa205d0c4e295c4}\label{class_ogre_1_1_hardware_buffer_manager_base_abc50f8bac0fad6710aa205d0c4e295c4}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!````~Hardware\+Buffer\+Manager\+Base@{$\sim$\+Hardware\+Buffer\+Manager\+Base}}
\index{````~Hardware\+Buffer\+Manager\+Base@{$\sim$\+Hardware\+Buffer\+Manager\+Base}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{$\sim$\+Hardware\+Buffer\+Manager\+Base()}{~HardwareBufferManagerBase()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::$\sim$\+Hardware\+Buffer\+Manager\+Base (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a6009815139b407d20347dd3e2262e5ad}\label{class_ogre_1_1_hardware_buffer_manager_base_a6009815139b407d20347dd3e2262e5ad}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!create\+Vertex\+Buffer@{create\+Vertex\+Buffer}}
\index{create\+Vertex\+Buffer@{create\+Vertex\+Buffer}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{create\+Vertex\+Buffer()}{createVertexBuffer()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::create\+Vertex\+Buffer (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{vertex\+Size,  }\item[{size\+\_\+t}]{num\+Verts,  }\item[{\hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage}}]{usage,  }\item[{bool}]{use\+Shadow\+Buffer = {\ttfamily false} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Create a hardware vertex buffer. 

\begin{DoxyRemark}{Remarks}
This method creates a new vertex buffer; this will act as a source of geometry data for rendering objects. Note that because the meaning of the contents of the vertex buffer depends on the usage, this method does not specify a vertex format; the user of this buffer can actually insert whatever data they wish, in any format. However, in order to use this with a \hyperlink{class_ogre_1_1_render_operation}{Render\+Operation}, the data in this vertex buffer will have to be associated with a semantic element of the rendering pipeline, e.\+g. a position, or texture coordinates. This is done using the \hyperlink{class_ogre_1_1_vertex_declaration}{Vertex\+Declaration} class, which itself contains \hyperlink{class_ogre_1_1_vertex_element}{Vertex\+Element} structures referring to the source data. 

Note that because vertex buffers can be shared, they are reference counted so you do not need to worry about destroying themm this will be done automatically. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em vertex\+Size} & The size in bytes of each vertex in this buffer; you must calculate this based on the kind of data you expect to populate this buffer with. \\
\hline
{\em num\+Verts} & The number of vertices in this buffer. \\
\hline
{\em usage} & One or more members of the \hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage} enumeration; you are strongly advised to use H\+B\+U\+\_\+\+S\+T\+A\+T\+I\+C\+\_\+\+W\+R\+I\+T\+E\+\_\+\+O\+N\+LY wherever possible, if you need to update regularly, consider H\+B\+U\+\_\+\+D\+Y\+N\+A\+M\+I\+C\+\_\+\+W\+R\+I\+T\+E\+\_\+\+O\+N\+LY and use\+Shadow\+Buffer=true. \\
\hline
{\em use\+Shadow\+Buffer} & If set to {\ttfamily true}, this buffer will be \textquotesingle{}shadowed\textquotesingle{} by one stored in system memory rather than G\+PU or A\+GP memory. You should set this flag if you intend to read data back from the vertex buffer, because reading data from a buffer in the G\+PU or A\+GP memory is very expensive, and is in fact impossible if you specify H\+B\+U\+\_\+\+W\+R\+I\+T\+E\+\_\+\+O\+N\+LY for the main buffer. If you use this option, all reads and writes will be done to the shadow buffer, and the shadow buffer will be synchronised with the real buffer at an appropriate time. \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_afc4b33f07c23045e13db48baae0e6dc4}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_base_a8fdf01dfbeaff6554d9143678ae1643c}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager\+Base}, \hyperlink{class_ogre_1_1_g_l3_plus_hardware_buffer_manager_a419a77d1d9a0a1a0c389d21a5172c007}{Ogre\+::\+G\+L3\+Plus\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_hardware_buffer_manager_aaf649d29751cf711e4e2949ebf040fc7}{Ogre\+::\+G\+L\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_buffer_manager_a833f70680fc9cfd7b06ba27768e4f9a1}{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_d3_d11_hardware_buffer_manager_a3f4c7f49c287f4b9be96fe55393d7f5c}{Ogre\+::\+D3\+D11\+Hardware\+Buffer\+Manager}, and \hyperlink{class_ogre_1_1_d3_d9_hardware_buffer_manager_a9dced0ec9165231a649072026bbe1adc}{Ogre\+::\+D3\+D9\+Hardware\+Buffer\+Manager}.



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

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_ae46262b1cc1e8bfe136e9bb203894c41}\label{class_ogre_1_1_hardware_buffer_manager_base_ae46262b1cc1e8bfe136e9bb203894c41}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!create\+Index\+Buffer@{create\+Index\+Buffer}}
\index{create\+Index\+Buffer@{create\+Index\+Buffer}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{create\+Index\+Buffer()}{createIndexBuffer()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_ae906cf8e579ba8ade19879ec05b1a456}{Hardware\+Index\+Buffer\+Shared\+Ptr} Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::create\+Index\+Buffer (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_hardware_index_buffer_a25ba4923e015d46de162f7cc4c256326}{Hardware\+Index\+Buffer\+::\+Index\+Type}}]{itype,  }\item[{size\+\_\+t}]{num\+Indexes,  }\item[{\hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage}}]{usage,  }\item[{bool}]{use\+Shadow\+Buffer = {\ttfamily false} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Create a hardware index buffer. 

\begin{DoxyRemark}{Remarks}
Note that because buffers can be shared, they are reference counted so you do not need to worry about destroying them this will be done automatically. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em itype} & The type in index, either 16-\/ or 32-\/bit, depending on how many vertices you need to be able to address \\
\hline
{\em num\+Indexes} & The number of indexes in the buffer \\
\hline
{\em usage} & One or more members of the \hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage} enumeration. \\
\hline
{\em use\+Shadow\+Buffer} & If set to {\ttfamily true}, this buffer will be \textquotesingle{}shadowed\textquotesingle{} by one stored in system memory rather than G\+PU or A\+GP memory. You should set this flag if you intend to read data back from the index buffer, because reading data from a buffer in the G\+PU or A\+GP memory is very expensive, and is in fact impossible if you specify H\+B\+U\+\_\+\+W\+R\+I\+T\+E\+\_\+\+O\+N\+LY for the main buffer. If you use this option, all reads and writes will be done to the shadow buffer, and the shadow buffer will be synchronised with the real buffer at an appropriate time. \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_a1058293f89bf34bcfacff9b122944ccf}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_base_ab8fff4e2c119799e1ba82310f8b83a33}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager\+Base}, \hyperlink{class_ogre_1_1_g_l3_plus_hardware_buffer_manager_a8b3ff1690fc0a6c5776a4b3899491fe7}{Ogre\+::\+G\+L3\+Plus\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_d3_d11_hardware_buffer_manager_aa33e0ccdd9574751fc2789331a6731dd}{Ogre\+::\+D3\+D11\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_hardware_buffer_manager_a0e74f9daa105e9a7404c8763b7673d86}{Ogre\+::\+G\+L\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_buffer_manager_a1a2baf608e7070a7f32410794edda932}{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Buffer\+Manager}, and \hyperlink{class_ogre_1_1_d3_d9_hardware_buffer_manager_a26d4ccf4b1f0b65ab1a7ff5fa78d70cd}{Ogre\+::\+D3\+D9\+Hardware\+Buffer\+Manager}.



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

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a830cd072c0e063e729b67201f04492a1}\label{class_ogre_1_1_hardware_buffer_manager_base_a830cd072c0e063e729b67201f04492a1}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!create\+Render\+To\+Vertex\+Buffer@{create\+Render\+To\+Vertex\+Buffer}}
\index{create\+Render\+To\+Vertex\+Buffer@{create\+Render\+To\+Vertex\+Buffer}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{create\+Render\+To\+Vertex\+Buffer()}{createRenderToVertexBuffer()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_a00531851f476b9a8432258652828902a}{Render\+To\+Vertex\+Buffer\+Shared\+Ptr} Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::create\+Render\+To\+Vertex\+Buffer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Create a render to vertex buffer. 

\begin{DoxyRemark}{Remarks}
The parameters (such as vertex size etc) are determined later and are allocated when needed. 
\end{DoxyRemark}


Implemented in \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_a1485b66a2e3a8679a0681d527ff2349a}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_base_a16b62aaec109b459ac7403ce1852bd51}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager\+Base}, \hyperlink{class_ogre_1_1_g_l3_plus_hardware_buffer_manager_ac710b201a316ddef6fd8a5d7e779df0e}{Ogre\+::\+G\+L3\+Plus\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_hardware_buffer_manager_ab1bffce6ba86bad62ceb6babaf2dbe64}{Ogre\+::\+G\+L\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_d3_d11_hardware_buffer_manager_ad1a400658b8368e5059d8733c1da1ab7}{Ogre\+::\+D3\+D11\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_buffer_manager_a616e928b1538a5398f8a07168b21cbd7}{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Buffer\+Manager}, and \hyperlink{class_ogre_1_1_d3_d9_hardware_buffer_manager_a5f7cb836698eccdfb241afb839578af5}{Ogre\+::\+D3\+D9\+Hardware\+Buffer\+Manager}.

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_adeb459425f647d9b9077bbea77a43f27}\label{class_ogre_1_1_hardware_buffer_manager_base_adeb459425f647d9b9077bbea77a43f27}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!create\+Uniform\+Buffer@{create\+Uniform\+Buffer}}
\index{create\+Uniform\+Buffer@{create\+Uniform\+Buffer}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{create\+Uniform\+Buffer()}{createUniformBuffer()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_a0a6c851c5f3de495932845bb09db1f20}{Hardware\+Uniform\+Buffer\+Shared\+Ptr} Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::create\+Uniform\+Buffer (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{size\+Bytes,  }\item[{\hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage}}]{usage = {\ttfamily \hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630a29ff2e0fd2b408359e84291b27282516}{Hardware\+Buffer\+::\+H\+B\+U\+\_\+\+D\+Y\+N\+A\+M\+I\+C\+\_\+\+W\+R\+I\+T\+E\+\_\+\+O\+N\+L\+Y\+\_\+\+D\+I\+S\+C\+A\+R\+D\+A\+B\+LE}},  }\item[{bool}]{use\+Shadow\+Buffer = {\ttfamily false},  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{name = {\ttfamily \char`\"{}\char`\"{}} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Create uniform buffer. 

This type of buffer allows the upload of shader constants once, and sharing between shader stages or even shaders from another materials. The update shall be triggered by \hyperlink{class_ogre_1_1_gpu_program_parameters}{Gpu\+Program\+Parameters}, if is dirty 

Implemented in \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_aa1b7898f96fbfaa36c7244e0105e0890}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_base_a15501e8d15eb24efed1f0971c84251ae}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager\+Base}, \hyperlink{class_ogre_1_1_g_l3_plus_hardware_buffer_manager_a94504eeeb39a7c91a4c843645345b134}{Ogre\+::\+G\+L3\+Plus\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_hardware_buffer_manager_a1fb179e767b967983e61306344a68731}{Ogre\+::\+G\+L\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_d3_d11_hardware_buffer_manager_a6c795cc5bac199ef9ee92854ae060d2e}{Ogre\+::\+D3\+D11\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_buffer_manager_acc84eb318f7fa7e0a52b129efa34e647}{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Buffer\+Manager}, and \hyperlink{class_ogre_1_1_d3_d9_hardware_buffer_manager_a02a5bda5385f1a7509c7ff837aa61620}{Ogre\+::\+D3\+D9\+Hardware\+Buffer\+Manager}.

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_aec7eea2d5d1853ea29b412f43986140b}\label{class_ogre_1_1_hardware_buffer_manager_base_aec7eea2d5d1853ea29b412f43986140b}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!create\+Counter\+Buffer@{create\+Counter\+Buffer}}
\index{create\+Counter\+Buffer@{create\+Counter\+Buffer}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{create\+Counter\+Buffer()}{createCounterBuffer()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_a148bab0ca4ae7eba547b07d880e809b1}{Hardware\+Counter\+Buffer\+Shared\+Ptr} Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::create\+Counter\+Buffer (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{size\+Bytes,  }\item[{\hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630}{Hardware\+Buffer\+::\+Usage}}]{usage = {\ttfamily \hyperlink{class_ogre_1_1_hardware_buffer_ae51f5970d879af736e4cf53e1ec46630a29ff2e0fd2b408359e84291b27282516}{Hardware\+Buffer\+::\+H\+B\+U\+\_\+\+D\+Y\+N\+A\+M\+I\+C\+\_\+\+W\+R\+I\+T\+E\+\_\+\+O\+N\+L\+Y\+\_\+\+D\+I\+S\+C\+A\+R\+D\+A\+B\+LE}},  }\item[{bool}]{use\+Shadow\+Buffer = {\ttfamily false},  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{name = {\ttfamily \char`\"{}\char`\"{}} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Create counter buffer. 

The update shall be triggered by \hyperlink{class_ogre_1_1_gpu_program_parameters}{Gpu\+Program\+Parameters}, if is dirty 

Implemented in \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_a0cce075405b6e83335acc40c4d13097b}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_default_hardware_buffer_manager_base_a5e38c5dcbc5c10e8779ef017a5509b6f}{Ogre\+::\+Default\+Hardware\+Buffer\+Manager\+Base}, \hyperlink{class_ogre_1_1_g_l3_plus_hardware_buffer_manager_a1c77b662e9ce7d3c1c1b830c6ae1b76a}{Ogre\+::\+G\+L3\+Plus\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_d3_d11_hardware_buffer_manager_ab6f0dfb4e535a3754d413187e8a87aea}{Ogre\+::\+D3\+D11\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_e_s2_hardware_buffer_manager_a0ffa3f7721cd5c795e70d83ea0b22bbf}{Ogre\+::\+G\+L\+E\+S2\+Hardware\+Buffer\+Manager}, \hyperlink{class_ogre_1_1_g_l_hardware_buffer_manager_ac9a81781d36c56b79c498224521c99ec}{Ogre\+::\+G\+L\+Hardware\+Buffer\+Manager}, and \hyperlink{class_ogre_1_1_d3_d9_hardware_buffer_manager_ad78b06087a1d545bd42cc626115bcb47}{Ogre\+::\+D3\+D9\+Hardware\+Buffer\+Manager}.

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_abe3ea209174c3a40286dde425addb814}\label{class_ogre_1_1_hardware_buffer_manager_base_abe3ea209174c3a40286dde425addb814}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!create\+Vertex\+Declaration@{create\+Vertex\+Declaration}}
\index{create\+Vertex\+Declaration@{create\+Vertex\+Declaration}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{create\+Vertex\+Declaration()}{createVertexDeclaration()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_vertex_declaration}{Vertex\+Declaration}$\ast$ Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::create\+Vertex\+Declaration (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Creates a new vertex declaration. 

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_ae3b729879133ff816e15f73e921c3b18}\label{class_ogre_1_1_hardware_buffer_manager_base_ae3b729879133ff816e15f73e921c3b18}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!destroy\+Vertex\+Declaration@{destroy\+Vertex\+Declaration}}
\index{destroy\+Vertex\+Declaration@{destroy\+Vertex\+Declaration}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{destroy\+Vertex\+Declaration()}{destroyVertexDeclaration()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::destroy\+Vertex\+Declaration (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_vertex_declaration}{Vertex\+Declaration} $\ast$}]{decl }\end{DoxyParamCaption})}



Destroys a vertex declaration. 

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_acbde393716ec1057024cdff4d3282913}\label{class_ogre_1_1_hardware_buffer_manager_base_acbde393716ec1057024cdff4d3282913}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!create\+Vertex\+Buffer\+Binding@{create\+Vertex\+Buffer\+Binding}}
\index{create\+Vertex\+Buffer\+Binding@{create\+Vertex\+Buffer\+Binding}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{create\+Vertex\+Buffer\+Binding()}{createVertexBufferBinding()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_vertex_buffer_binding}{Vertex\+Buffer\+Binding}$\ast$ Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::create\+Vertex\+Buffer\+Binding (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Creates a new \hyperlink{class_ogre_1_1_vertex_buffer_binding}{Vertex\+Buffer\+Binding}. 

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a7c2868897d9a417b523f2fe9420f1e22}\label{class_ogre_1_1_hardware_buffer_manager_base_a7c2868897d9a417b523f2fe9420f1e22}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!destroy\+Vertex\+Buffer\+Binding@{destroy\+Vertex\+Buffer\+Binding}}
\index{destroy\+Vertex\+Buffer\+Binding@{destroy\+Vertex\+Buffer\+Binding}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{destroy\+Vertex\+Buffer\+Binding()}{destroyVertexBufferBinding()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::destroy\+Vertex\+Buffer\+Binding (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_vertex_buffer_binding}{Vertex\+Buffer\+Binding} $\ast$}]{binding }\end{DoxyParamCaption})}



Destroys a \hyperlink{class_ogre_1_1_vertex_buffer_binding}{Vertex\+Buffer\+Binding}. 

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a1deff999bf2f7fa437609fca417810e9}\label{class_ogre_1_1_hardware_buffer_manager_base_a1deff999bf2f7fa437609fca417810e9}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!register\+Vertex\+Buffer\+Source\+And\+Copy@{register\+Vertex\+Buffer\+Source\+And\+Copy}}
\index{register\+Vertex\+Buffer\+Source\+And\+Copy@{register\+Vertex\+Buffer\+Source\+And\+Copy}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{register\+Vertex\+Buffer\+Source\+And\+Copy()}{registerVertexBufferSourceAndCopy()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::register\+Vertex\+Buffer\+Source\+And\+Copy (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&}]{source\+Buffer,  }\item[{const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&}]{copy }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Registers a vertex buffer as a copy of another. 

\begin{DoxyRemark}{Remarks}
This is useful for registering an existing buffer as a temporary buffer which can be allocated just like a copy. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a557fa7f938bee48841e21e995eb095d6}\label{class_ogre_1_1_hardware_buffer_manager_base_a557fa7f938bee48841e21e995eb095d6}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!allocate\+Vertex\+Buffer\+Copy@{allocate\+Vertex\+Buffer\+Copy}}
\index{allocate\+Vertex\+Buffer\+Copy@{allocate\+Vertex\+Buffer\+Copy}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{allocate\+Vertex\+Buffer\+Copy()}{allocateVertexBufferCopy()}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::allocate\+Vertex\+Buffer\+Copy (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&}]{source\+Buffer,  }\item[{\hyperlink{class_ogre_1_1_hardware_buffer_manager_base_a88f21df1e7ee330033812ddeba4a08fa}{Buffer\+License\+Type}}]{license\+Type,  }\item[{\hyperlink{class_ogre_1_1_hardware_buffer_licensee}{Hardware\+Buffer\+Licensee} $\ast$}]{licensee,  }\item[{bool}]{copy\+Data = {\ttfamily false} }\end{DoxyParamCaption})}



Allocates a copy of a given vertex buffer. 

\begin{DoxyRemark}{Remarks}
This method allocates a temporary copy of an existing vertex buffer. This buffer is subsequently stored and can be made available for other purposes later without incurring the cost of construction / destruction. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em source\+Buffer} & The source buffer to use as a copy. \\
\hline
{\em license\+Type} & The type of license required on this buffer -\/ automatic release causes this class to release licenses every frame so that they can be reallocated anew. \\
\hline
{\em licensee} & Pointer back to the class requesting the copy, which must implement Hardware\+Buffer\+License in order to be notified when the license expires. \\
\hline
{\em copy\+Data} & If {\ttfamily true}, the current data is copied as well as the structure of the buffer/ \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_acca9ea14315ef17d74f6ab972d9a1ec8}\label{class_ogre_1_1_hardware_buffer_manager_base_acca9ea14315ef17d74f6ab972d9a1ec8}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!release\+Vertex\+Buffer\+Copy@{release\+Vertex\+Buffer\+Copy}}
\index{release\+Vertex\+Buffer\+Copy@{release\+Vertex\+Buffer\+Copy}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{release\+Vertex\+Buffer\+Copy()}{releaseVertexBufferCopy()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::release\+Vertex\+Buffer\+Copy (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&}]{buffer\+Copy }\end{DoxyParamCaption})}



Manually release a vertex buffer copy for others to subsequently use. 

\begin{DoxyRemark}{Remarks}
Only required if the original call to allocate\+Vertex\+Buffer\+Copy included a license\+Type of B\+L\+T\+\_\+\+M\+A\+N\+U\+A\+L\+\_\+\+R\+E\+L\+E\+A\+SE. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em buffer\+Copy} & The buffer copy. The caller is expected to delete or at least no longer use this reference, since another user may well begin to modify the contents of the buffer. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_ab717df387ec6c1e119ed2ac0e2c9a54b}\label{class_ogre_1_1_hardware_buffer_manager_base_ab717df387ec6c1e119ed2ac0e2c9a54b}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!touch\+Vertex\+Buffer\+Copy@{touch\+Vertex\+Buffer\+Copy}}
\index{touch\+Vertex\+Buffer\+Copy@{touch\+Vertex\+Buffer\+Copy}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{touch\+Vertex\+Buffer\+Copy()}{touchVertexBufferCopy()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::touch\+Vertex\+Buffer\+Copy (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&}]{buffer\+Copy }\end{DoxyParamCaption})}



Tell engine that the vertex buffer copy intent to reuse. 

\begin{DoxyRemark}{Remarks}
\hyperlink{namespace_ogre}{Ogre} internal keep an expired delay counter of B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE buffers, when the counter count down to zero, it\textquotesingle{}ll release for other purposes later. But you can use this function to reset the counter to the internal configured value, keep the buffer not get released for some frames. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em buffer\+Copy} & The buffer copy. The caller is expected to keep this buffer copy for use. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a01c05c63b98f45df312660e724d95320}\label{class_ogre_1_1_hardware_buffer_manager_base_a01c05c63b98f45df312660e724d95320}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!\+\_\+free\+Unused\+Buffer\+Copies@{\+\_\+free\+Unused\+Buffer\+Copies}}
\index{\+\_\+free\+Unused\+Buffer\+Copies@{\+\_\+free\+Unused\+Buffer\+Copies}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{\+\_\+free\+Unused\+Buffer\+Copies()}{\_freeUnusedBufferCopies()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+\_\+free\+Unused\+Buffer\+Copies (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Free all unused vertex buffer copies. 

\begin{DoxyRemark}{Remarks}
This method free all temporary vertex buffers that not in used. In normally, temporary vertex buffers are subsequently stored and can be made available for other purposes later without incurring the cost of construction / destruction. But in some cases you want to free them to save hardware memory (e.\+g. application was runs in a long time, you might free temporary buffers periodically to avoid memory overload). 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a5551674a13abf8d3458d2798e58d7cd9}\label{class_ogre_1_1_hardware_buffer_manager_base_a5551674a13abf8d3458d2798e58d7cd9}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!\+\_\+release\+Buffer\+Copies@{\+\_\+release\+Buffer\+Copies}}
\index{\+\_\+release\+Buffer\+Copies@{\+\_\+release\+Buffer\+Copies}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{\+\_\+release\+Buffer\+Copies()}{\_releaseBufferCopies()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+\_\+release\+Buffer\+Copies (\begin{DoxyParamCaption}\item[{bool}]{force\+Free\+Unused = {\ttfamily false} }\end{DoxyParamCaption})}



Internal method for releasing all temporary buffers which have been allocated using B\+L\+T\+\_\+\+A\+U\+T\+O\+M\+A\+T\+I\+C\+\_\+\+R\+E\+L\+E\+A\+SE; is called by O\+G\+RE. 


\begin{DoxyParams}{Parameters}
{\em force\+Free\+Unused} & If {\ttfamily true}, free all unused temporary buffers. If {\ttfamily false}, auto detect and free all unused temporary buffers based on temporary buffers utilization. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a876ce18832783cd168f4e55d989c3f1c}\label{class_ogre_1_1_hardware_buffer_manager_base_a876ce18832783cd168f4e55d989c3f1c}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!\+\_\+force\+Release\+Buffer\+Copies@{\+\_\+force\+Release\+Buffer\+Copies}}
\index{\+\_\+force\+Release\+Buffer\+Copies@{\+\_\+force\+Release\+Buffer\+Copies}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{\+\_\+force\+Release\+Buffer\+Copies()}{\_forceReleaseBufferCopies()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+\_\+force\+Release\+Buffer\+Copies (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&}]{source\+Buffer }\end{DoxyParamCaption})}



Internal method that forces the release of copies of a given buffer. 

\begin{DoxyRemark}{Remarks}
This usually means that the buffer which the copies are based on has been changed in some fundamental way, and the owner of the original wishes to make that known so that new copies will reflect the changes. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em source\+Buffer} & The source buffer as a shared pointer. \hyperlink{class_ogre_1_1_any}{Any} buffer copies created from the source buffer are deleted. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a8cd2588a1b57f4b417d6816f7ddb5584}\label{class_ogre_1_1_hardware_buffer_manager_base_a8cd2588a1b57f4b417d6816f7ddb5584}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!\+\_\+force\+Release\+Buffer\+Copies@{\+\_\+force\+Release\+Buffer\+Copies}}
\index{\+\_\+force\+Release\+Buffer\+Copies@{\+\_\+force\+Release\+Buffer\+Copies}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{\+\_\+force\+Release\+Buffer\+Copies()}{\_forceReleaseBufferCopies()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+\_\+force\+Release\+Buffer\+Copies (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_hardware_vertex_buffer}{Hardware\+Vertex\+Buffer} $\ast$}]{source\+Buffer }\end{DoxyParamCaption})}



Internal method that forces the release of copies of a given buffer. 

\begin{DoxyRemark}{Remarks}
This usually means that the buffer which the copies are based on has been changed in some fundamental way, and the owner of the original wishes to make that known so that new copies will reflect the changes. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em source\+Buffer} & The source buffer as a pointer. \hyperlink{class_ogre_1_1_any}{Any} buffer copies created from the source buffer are deleted. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a29b2e243bab8522ae27ec23268ea154a}\label{class_ogre_1_1_hardware_buffer_manager_base_a29b2e243bab8522ae27ec23268ea154a}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!\+\_\+notify\+Vertex\+Buffer\+Destroyed@{\+\_\+notify\+Vertex\+Buffer\+Destroyed}}
\index{\+\_\+notify\+Vertex\+Buffer\+Destroyed@{\+\_\+notify\+Vertex\+Buffer\+Destroyed}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{\+\_\+notify\+Vertex\+Buffer\+Destroyed()}{\_notifyVertexBufferDestroyed()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+\_\+notify\+Vertex\+Buffer\+Destroyed (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_hardware_vertex_buffer}{Hardware\+Vertex\+Buffer} $\ast$}]{buf }\end{DoxyParamCaption})}



Notification that a hardware vertex buffer has been destroyed. 

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_aa12ae6a67af715b2be80182bd05abb46}\label{class_ogre_1_1_hardware_buffer_manager_base_aa12ae6a67af715b2be80182bd05abb46}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!\+\_\+notify\+Index\+Buffer\+Destroyed@{\+\_\+notify\+Index\+Buffer\+Destroyed}}
\index{\+\_\+notify\+Index\+Buffer\+Destroyed@{\+\_\+notify\+Index\+Buffer\+Destroyed}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{\+\_\+notify\+Index\+Buffer\+Destroyed()}{\_notifyIndexBufferDestroyed()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+\_\+notify\+Index\+Buffer\+Destroyed (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_hardware_index_buffer}{Hardware\+Index\+Buffer} $\ast$}]{buf }\end{DoxyParamCaption})}



Notification that a hardware index buffer has been destroyed. 

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_ad19793152eef356380827edb755c613e}\label{class_ogre_1_1_hardware_buffer_manager_base_ad19793152eef356380827edb755c613e}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!\+\_\+notify\+Uniform\+Buffer\+Destroyed@{\+\_\+notify\+Uniform\+Buffer\+Destroyed}}
\index{\+\_\+notify\+Uniform\+Buffer\+Destroyed@{\+\_\+notify\+Uniform\+Buffer\+Destroyed}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{\+\_\+notify\+Uniform\+Buffer\+Destroyed()}{\_notifyUniformBufferDestroyed()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+\_\+notify\+Uniform\+Buffer\+Destroyed (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_hardware_uniform_buffer}{Hardware\+Uniform\+Buffer} $\ast$}]{buf }\end{DoxyParamCaption})}



Notification that at hardware uniform buffer has been destroyed. 

\mbox{\Hypertarget{class_ogre_1_1_hardware_buffer_manager_base_a45fe3ad0964310d9b150d45eaddf67d3}\label{class_ogre_1_1_hardware_buffer_manager_base_a45fe3ad0964310d9b150d45eaddf67d3}} 
\index{Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}!\+\_\+notify\+Counter\+Buffer\+Destroyed@{\+\_\+notify\+Counter\+Buffer\+Destroyed}}
\index{\+\_\+notify\+Counter\+Buffer\+Destroyed@{\+\_\+notify\+Counter\+Buffer\+Destroyed}!Ogre\+::\+Hardware\+Buffer\+Manager\+Base@{Ogre\+::\+Hardware\+Buffer\+Manager\+Base}}
\subsubsection{\texorpdfstring{\+\_\+notify\+Counter\+Buffer\+Destroyed()}{\_notifyCounterBufferDestroyed()}}
{\footnotesize\ttfamily void Ogre\+::\+Hardware\+Buffer\+Manager\+Base\+::\+\_\+notify\+Counter\+Buffer\+Destroyed (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_hardware_counter_buffer}{Hardware\+Counter\+Buffer} $\ast$}]{buf }\end{DoxyParamCaption})}



Notification that at hardware counter buffer has been destroyed. 



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