\hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory}{}\doxysection{Ogre\+::R\+T\+Shader\+::Texture\+Atlas\+Sampler\+Factory Class Reference}
\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory}\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}


A factory that enables creation of \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler}{Texture\+Atlas\+Sampler}} instances.  




{\ttfamily \#include $<$Ogre\+Shader\+Ex\+Texture\+Atlas\+Sampler.\+h$>$}



Inheritance diagram for Ogre\+::R\+T\+Shader\+::Texture\+Atlas\+Sampler\+Factory\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_1_1_texture_atlas_attib}{Texture\+Atlas\+Attib}}
\end{DoxyCompactItemize}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82}{Index\+Position\+Mode}} \{ \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82a85c0a09b9010c2eb959f6cac47d495d6}{ipm\+Relative}}, 
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82af0c09a9a9b283b43436aadc23ae6891d}{ipm\+Absolute}}
 \}
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_aecf70f6c8cd27a00a908cde455bed349}{Texture\+Atlas\+Sampler\+Factory}} ()
\item 
bool \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ae31815d0e9825e7fb4b46ddf49f48655}{add\+Texutre\+Atlas\+Definition}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&filename, \mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}} texture\+Atlas\+Table=\mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}}())
\begin{DoxyCompactList}\small\item\em Adds a texture atlas definition from a stream. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a0b9c87db6768def43ccc98361afdd56b}{add\+Texutre\+Atlas\+Definition}} (\mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}} stream, \mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}} texture\+Atlas\+Table=\mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}}())
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a14ce88a3c6833585ec73b77b7536b441}{create\+Instance}} () \mbox{\hyperlink{_ogre_platform_8h_a11162eebee0099930c48076229cc6f04}{O\+G\+R\+E\+\_\+\+N\+O\+D\+I\+S\+C\+A\+RD}}
\begin{DoxyCompactList}\small\item\em Create an instance of the \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} sub class it suppose to create. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ae1478cf71297ae57d26114b79e7610c0}{create\+Instance}} (\mbox{\hyperlink{class_ogre_1_1_script_compiler}{Script\+Compiler}} $\ast$compiler, \mbox{\hyperlink{class_ogre_1_1_property_abstract_node}{Property\+Abstract\+Node}} $\ast$prop, \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$pass, \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_s_g_script_translator}{S\+G\+Script\+Translator}} $\ast$translator)
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a57deb4c224e304fa290247c56e74890e}{create\+Instance}} (\mbox{\hyperlink{class_ogre_1_1_script_compiler}{Script\+Compiler}} $\ast$compiler, \mbox{\hyperlink{class_ogre_1_1_property_abstract_node}{Property\+Abstract\+Node}} $\ast$prop, \mbox{\hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State}} $\ast$tex\+State, \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_s_g_script_translator}{S\+G\+Script\+Translator}} $\ast$translator) \mbox{\hyperlink{_ogre_platform_8h_a11162eebee0099930c48076229cc6f04}{O\+G\+R\+E\+\_\+\+N\+O\+D\+I\+S\+C\+A\+RD}}
\begin{DoxyCompactList}\small\item\em Create an instance of the \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} based on script properties. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a54a6f6eba1624fef1de9c20eb7b0a6b5}{create\+Or\+Retrieve\+Instance}} (\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_s_g_script_translator}{S\+G\+Script\+Translator}} $\ast$translator)
\begin{DoxyCompactList}\small\item\em Retrieve the previous instance the S\+RS in the script translator or create a new instance if not found. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_ab89670718152dcb35f2428cf5909ed99}{destroy\+All\+Instances}} ()
\begin{DoxyCompactList}\small\item\em Destroy all the instances that created by this factory. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a23839e5fc35257e4ffb9076e2aaf9409}{destroy\+Instance}} (\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$sub\+Render\+State)
\begin{DoxyCompactList}\small\item\em Destroy the given instance. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{struct_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_1_1_texture_atlas_attib}{Texture\+Atlas\+Attib}} \& \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac4b309d3acaa022e400e956ca9416a0c}{get\+Default\+Atlasing\+Attributes}} () const
\begin{DoxyCompactList}\small\item\em Returns the default attributes of texture atlas processing. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}} \& \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a9319cf6c65c5de4ad0eb07d1284b90b7}{get\+Texture\+Atlas\+Table}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&texture\+Name) const
\begin{DoxyCompactList}\small\item\em Retrieve the texture atlas table information for a given texture. \end{DoxyCompactList}\item 
virtual const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \& \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac84da356c2b4cbac8cf4b1232c942e16}{get\+Type}} () const
\item 
bool \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a3c9fc685c61b67d3e258ab584b1fa24a}{has\+Material\+Atlasing\+Attributes}} (\mbox{\hyperlink{class_ogre_1_1_material}{Ogre\+::\+Material}} $\ast$material, \mbox{\hyperlink{struct_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_1_1_texture_atlas_attib}{Texture\+Atlas\+Attib}} $\ast$attrib=N\+U\+LL) const
\begin{DoxyCompactList}\small\item\em Tells whether a specific material has atlas attributes associated with it. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a08f5fe9225028e81cdc8d7c6bbc703b0}{remove\+All\+Texture\+Atlas\+Tables}} ()
\begin{DoxyCompactList}\small\item\em Removes all texture atlas table information. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a6d37cc267e18a241625ac6bbf7f1b8bc}{remove\+Texture\+Atlas\+Table}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&texture\+Name)
\begin{DoxyCompactList}\small\item\em Removes the texture atlas information from a given texture. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_aad469e872e87011f2f1b8240b5babf85}{set\+Default\+Atlasing\+Attributes}} (\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82}{Index\+Position\+Mode}} mode, \mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}} offset, bool auto\+Adjust\+Borders)
\begin{DoxyCompactList}\small\item\em Set the default attributes concerning atlas texture processing. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a00cb3fe33d98ee3dab5319108c4420c7}{set\+Material\+Atlasing\+Attributes}} (\mbox{\hyperlink{class_ogre_1_1_material}{Ogre\+::\+Material}} $\ast$material, \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82}{Index\+Position\+Mode}} mode, \mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}} offset, bool auto\+Adjust\+Borders)
\begin{DoxyCompactList}\small\item\em Set the default attributes concerning atlas texture processing for a specific material. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a280560966e75ca1d42e378fccbe16e46}{set\+Texture\+Atlas\+Table}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&texture\+Name, const \mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}} \&atlas\+Data, bool auto\+Border\+Adjust=true)
\begin{DoxyCompactList}\small\item\em Set the texture atlas information for a given texture. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a10b565ec536c0539e44fb1147ef777a4}{write\+Instance}} (\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$ser, \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$sub\+Render\+State, const \mbox{\hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State}} $\ast$src\+Texture\+Unit, const \mbox{\hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State}} $\ast$dst\+Texture\+Unit)
\begin{DoxyCompactList}\small\item\em Write the given sub-\/render state instance using the material serializer. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac222dd44e1ee51a691d939f2f41508de}{write\+Instance}} (\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$ser, \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$sub\+Render\+State, \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$src\+Pass, \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$dst\+Pass)
\end{DoxyCompactItemize}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory}{Texture\+Atlas\+Sampler\+Factory}} \& \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a5f6e45582f72e86e195c967bb052c001}{get\+Singleton}} (void)
\item 
static \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory}{Texture\+Atlas\+Sampler\+Factory}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a68cc8d5137e49f871040a963e9cabf93}{get\+Singleton\+Ptr}} (void)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
A factory that enables creation of \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler}{Texture\+Atlas\+Sampler}} instances. 

\begin{DoxyRemark}{Remarks}
Sub class of \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory}{Sub\+Render\+State\+Factory}} 
\end{DoxyRemark}


\doxysubsection{Member Enumeration Documentation}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!IndexPositionMode@{IndexPositionMode}}
\index{IndexPositionMode@{IndexPositionMode}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{IndexPositionMode}{IndexPositionMode}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82}{Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::\+Index\+Position\+Mode}}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{ipmRelative@{ipmRelative}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!ipmRelative@{ipmRelative}}}\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82a85c0a09b9010c2eb959f6cac47d495d6}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82a85c0a09b9010c2eb959f6cac47d495d6}} 
ipm\+Relative&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{ipmAbsolute@{ipmAbsolute}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!ipmAbsolute@{ipmAbsolute}}}\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82af0c09a9a9b283b43436aadc23ae6891d}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82af0c09a9a9b283b43436aadc23ae6891d}} 
ipm\+Absolute&\\
\hline

\end{DoxyEnumFields}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_aecf70f6c8cd27a00a908cde455bed349}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_aecf70f6c8cd27a00a908cde455bed349}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!TextureAtlasSamplerFactory@{TextureAtlasSamplerFactory}}
\index{TextureAtlasSamplerFactory@{TextureAtlasSamplerFactory}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{TextureAtlasSamplerFactory()}{TextureAtlasSamplerFactory()}}
{\footnotesize\ttfamily Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::\+Texture\+Atlas\+Sampler\+Factory (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a68cc8d5137e49f871040a963e9cabf93}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a68cc8d5137e49f871040a963e9cabf93}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!getSingletonPtr@{getSingletonPtr}}
\index{getSingletonPtr@{getSingletonPtr}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{getSingletonPtr()}{getSingletonPtr()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory}{Texture\+Atlas\+Sampler\+Factory}}$\ast$ Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::get\+Singleton\+Ptr (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a5f6e45582f72e86e195c967bb052c001}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a5f6e45582f72e86e195c967bb052c001}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!getSingleton@{getSingleton}}
\index{getSingleton@{getSingleton}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{getSingleton()}{getSingleton()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory}{Texture\+Atlas\+Sampler\+Factory}}\& Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::get\+Singleton (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac84da356c2b4cbac8cf4b1232c942e16}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac84da356c2b4cbac8cf4b1232c942e16}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!getType@{getType}}
\index{getType@{getType}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{getType()}{getType()}}
{\footnotesize\ttfamily virtual const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}\& Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::get\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a62346d71416d91a03f429ed7404ca450}{Sub\+Render\+State\+Factory\+::get\+Type}}. 
\end{DoxySeeAlso}


Implements \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a62346d71416d91a03f429ed7404ca450}{Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory}}.

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ae1478cf71297ae57d26114b79e7610c0}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ae1478cf71297ae57d26114b79e7610c0}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!createInstance@{createInstance}}
\index{createInstance@{createInstance}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{createInstance()}{createInstance()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}}$\ast$ Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::create\+Instance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_script_compiler}{Script\+Compiler}} $\ast$}]{compiler,  }\item[{\mbox{\hyperlink{class_ogre_1_1_property_abstract_node}{Property\+Abstract\+Node}} $\ast$}]{prop,  }\item[{\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{pass,  }\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_s_g_script_translator}{S\+G\+Script\+Translator}} $\ast$}]{translator }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a14ce88a3c6833585ec73b77b7536b441}{Sub\+Render\+State\+Factory\+::create\+Instance}}. 
\end{DoxySeeAlso}


Reimplemented from \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_af417d9241d5ff0ed4d4bb2aa835b872e}{Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory}}.

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac222dd44e1ee51a691d939f2f41508de}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac222dd44e1ee51a691d939f2f41508de}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!writeInstance@{writeInstance}}
\index{writeInstance@{writeInstance}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{writeInstance()}{writeInstance()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::write\+Instance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$}]{ser,  }\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$}]{sub\+Render\+State,  }\item[{\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{src\+Pass,  }\item[{\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{dst\+Pass }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_ada31909080bae96784504be42d9bd77c}{Sub\+Render\+State\+Factory\+::write\+Instance}}. 
\end{DoxySeeAlso}


Reimplemented from \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_ada31909080bae96784504be42d9bd77c}{Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory}}.

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ae31815d0e9825e7fb4b46ddf49f48655}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ae31815d0e9825e7fb4b46ddf49f48655}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!addTexutreAtlasDefinition@{addTexutreAtlasDefinition}}
\index{addTexutreAtlasDefinition@{addTexutreAtlasDefinition}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{addTexutreAtlasDefinition()}{addTexutreAtlasDefinition()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::add\+Texutre\+Atlas\+Definition (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&}]{filename,  }\item[{\mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}}}]{texture\+Atlas\+Table = {\ttfamily \mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}}()} }\end{DoxyParamCaption})}



Adds a texture atlas definition from a stream. 

This function loads a texture atlas definition file from a stream. The accepted format for this file is the N\+Vidia \mbox{\hyperlink{class_ogre_1_1_texture}{Texture}} Atlas Tools \char`\"{}.\+tai\char`\"{} file format. This file as

The \char`\"{}.\+tai\char`\"{} format consist of lines, where each line corresponds to a specific texture in the texture atlas. Each line has the following format\+: \begin{DoxyVerb}<original texture filename>/t/t<atlas filename>, <atlas idx>, <atlas type>, <woffset>, <hoffset>, <depth offset>, <width>, <height>
\end{DoxyVerb}



\begin{DoxyParams}{Parameters}
{\em filename} & The full path to the file containing a \char`\"{}.\+tai\char`\"{} format data. \\
\hline
{\em texture\+Atlas\+Table} & A table into which the data in the stream will be filled. This parameter will be filled only if it is not null. The system factory keeps a copy of this information in any case.\\
\hline
\end{DoxyParams}
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


\begin{DoxyParams}{Parameters}
{\em stream} & A stream to a file containing \char`\"{}.\+tai\char`\"{} format data \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a0b9c87db6768def43ccc98361afdd56b}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a0b9c87db6768def43ccc98361afdd56b}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!addTexutreAtlasDefinition@{addTexutreAtlasDefinition}}
\index{addTexutreAtlasDefinition@{addTexutreAtlasDefinition}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{addTexutreAtlasDefinition()}{addTexutreAtlasDefinition()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::add\+Texutre\+Atlas\+Definition (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}}}]{stream,  }\item[{\mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}}}]{texture\+Atlas\+Table = {\ttfamily \mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}}()} }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a280560966e75ca1d42e378fccbe16e46}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a280560966e75ca1d42e378fccbe16e46}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!setTextureAtlasTable@{setTextureAtlasTable}}
\index{setTextureAtlasTable@{setTextureAtlasTable}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{setTextureAtlasTable()}{setTextureAtlasTable()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::set\+Texture\+Atlas\+Table (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{texture\+Name,  }\item[{const \mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}} \&}]{atlas\+Data,  }\item[{bool}]{auto\+Border\+Adjust = {\ttfamily true} }\end{DoxyParamCaption})}



Set the texture atlas information for a given texture. 


\begin{DoxyParams}{Parameters}
{\em texture\+Name} & Name of an atlas texture \\
\hline
{\em atlas\+Data} & A list of records containing the position and size of each texture in the atlas \\
\hline
{\em auto\+Border\+Adjust} & Sets whether to automatically adjust the image polling area for border issues.\+See the Border issues paragraph under the class documentation for more information. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a6d37cc267e18a241625ac6bbf7f1b8bc}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a6d37cc267e18a241625ac6bbf7f1b8bc}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!removeTextureAtlasTable@{removeTextureAtlasTable}}
\index{removeTextureAtlasTable@{removeTextureAtlasTable}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{removeTextureAtlasTable()}{removeTextureAtlasTable()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::remove\+Texture\+Atlas\+Table (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{texture\+Name }\end{DoxyParamCaption})}



Removes the texture atlas information from a given texture. 


\begin{DoxyParams}{Parameters}
{\em texture\+Name} & Name of an atlas texture \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a08f5fe9225028e81cdc8d7c6bbc703b0}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a08f5fe9225028e81cdc8d7c6bbc703b0}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!removeAllTextureAtlasTables@{removeAllTextureAtlasTables}}
\index{removeAllTextureAtlasTables@{removeAllTextureAtlasTables}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{removeAllTextureAtlasTables()}{removeAllTextureAtlasTables()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::remove\+All\+Texture\+Atlas\+Tables (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Removes all texture atlas table information. 

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a9319cf6c65c5de4ad0eb07d1284b90b7}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a9319cf6c65c5de4ad0eb07d1284b90b7}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!getTextureAtlasTable@{getTextureAtlasTable}}
\index{getTextureAtlasTable@{getTextureAtlasTable}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{getTextureAtlasTable()}{getTextureAtlasTable()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group___r_t_shader_gae2dbb18ab17e09a77a17429beac98115}{Texture\+Atlas\+Table\+Ptr}}\& Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::get\+Texture\+Atlas\+Table (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{texture\+Name }\end{DoxyParamCaption}) const}



Retrieve the texture atlas table information for a given texture. 


\begin{DoxyParams}{Parameters}
{\em texture\+Name} & Name of an atlas texture \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_aad469e872e87011f2f1b8240b5babf85}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_aad469e872e87011f2f1b8240b5babf85}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!setDefaultAtlasingAttributes@{setDefaultAtlasingAttributes}}
\index{setDefaultAtlasingAttributes@{setDefaultAtlasingAttributes}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{setDefaultAtlasingAttributes()}{setDefaultAtlasingAttributes()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::set\+Default\+Atlasing\+Attributes (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82}{Index\+Position\+Mode}}}]{mode,  }\item[{\mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}}}]{offset,  }\item[{bool}]{auto\+Adjust\+Borders }\end{DoxyParamCaption})}



Set the default attributes concerning atlas texture processing. 


\begin{DoxyParams}{Parameters}
{\em mode} & The index positioning mode. Tells relative to where the the texture coordinates containing the atlas image to use are positioned. \\
\hline
{\em offset} & The index positioning offset. Tells the offset relative to the index positioning mode. \\
\hline
{\em auto\+Adjust\+Borders} & Tells whether to automatically adjust the polled area in the texture relative to the used mipmap level. \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler}{Texture\+Atlas\+Sampler}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac4b309d3acaa022e400e956ca9416a0c}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_ac4b309d3acaa022e400e956ca9416a0c}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!getDefaultAtlasingAttributes@{getDefaultAtlasingAttributes}}
\index{getDefaultAtlasingAttributes@{getDefaultAtlasingAttributes}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{getDefaultAtlasingAttributes()}{getDefaultAtlasingAttributes()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{struct_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_1_1_texture_atlas_attib}{Texture\+Atlas\+Attib}}\& Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::get\+Default\+Atlasing\+Attributes (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Returns the default attributes of texture atlas processing. 

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_aad469e872e87011f2f1b8240b5babf85}{set\+Default\+Atlasing\+Attributes}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a00cb3fe33d98ee3dab5319108c4420c7}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a00cb3fe33d98ee3dab5319108c4420c7}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!setMaterialAtlasingAttributes@{setMaterialAtlasingAttributes}}
\index{setMaterialAtlasingAttributes@{setMaterialAtlasingAttributes}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{setMaterialAtlasingAttributes()}{setMaterialAtlasingAttributes()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::set\+Material\+Atlasing\+Attributes (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material}{Ogre\+::\+Material}} $\ast$}]{material,  }\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a041b52bd88c674b0ee08f71104255b82}{Index\+Position\+Mode}}}]{mode,  }\item[{\mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}}}]{offset,  }\item[{bool}]{auto\+Adjust\+Borders }\end{DoxyParamCaption})}



Set the default attributes concerning atlas texture processing for a specific material. 


\begin{DoxyParams}{Parameters}
{\em material} & The material to which to add the information \\
\hline
{\em mode} & The index positioning mode. Tells relative to where the the texture coordinates containing the atlas image to use are positioned. \\
\hline
{\em offset} & The index positioning offset. Tells the offset relative to the index positioning mode. \\
\hline
{\em auto\+Adjust\+Borders} & Tells whether to automatically adjust the polled area in the texture relative to the used mipmap level. \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler}{Texture\+Atlas\+Sampler}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a3c9fc685c61b67d3e258ab584b1fa24a}\label{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a3c9fc685c61b67d3e258ab584b1fa24a}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!hasMaterialAtlasingAttributes@{hasMaterialAtlasingAttributes}}
\index{hasMaterialAtlasingAttributes@{hasMaterialAtlasingAttributes}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{hasMaterialAtlasingAttributes()}{hasMaterialAtlasingAttributes()}}
{\footnotesize\ttfamily bool Ogre\+::\+R\+T\+Shader\+::\+Texture\+Atlas\+Sampler\+Factory\+::has\+Material\+Atlasing\+Attributes (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material}{Ogre\+::\+Material}} $\ast$}]{material,  }\item[{\mbox{\hyperlink{struct_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_1_1_texture_atlas_attib}{Texture\+Atlas\+Attib}} $\ast$}]{attrib = {\ttfamily NULL} }\end{DoxyParamCaption}) const}



Tells whether a specific material has atlas attributes associated with it. 

And returns the attributes to be used. \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_texture_atlas_sampler_factory_a00cb3fe33d98ee3dab5319108c4420c7}{set\+Material\+Atlasing\+Attributes}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a14ce88a3c6833585ec73b77b7536b441}\label{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a14ce88a3c6833585ec73b77b7536b441}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!createInstance@{createInstance}}
\index{createInstance@{createInstance}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{createInstance()}{createInstance()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}}$\ast$ Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory\+::create\+Instance (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Create an instance of the \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} sub class it suppose to create. 

~\newline
 \mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a57deb4c224e304fa290247c56e74890e}\label{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a57deb4c224e304fa290247c56e74890e}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!createInstance@{createInstance}}
\index{createInstance@{createInstance}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{createInstance()}{createInstance()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}}$\ast$ Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory\+::create\+Instance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_script_compiler}{Script\+Compiler}} $\ast$}]{compiler,  }\item[{\mbox{\hyperlink{class_ogre_1_1_property_abstract_node}{Property\+Abstract\+Node}} $\ast$}]{prop,  }\item[{\mbox{\hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State}} $\ast$}]{tex\+State,  }\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_s_g_script_translator}{S\+G\+Script\+Translator}} $\ast$}]{translator }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [inherited]}}



Create an instance of the \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} based on script properties. 

~\newline
 This method is called in the context of script parsing and let this factory the opportunity to create custom \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} instances based on extended script properties. 
\begin{DoxyParams}{Parameters}
{\em compiler} & The compiler instance. \\
\hline
{\em prop} & The abstract property node. \\
\hline
{\em tex\+State} & The pass that is the parent context of this node. \\
\hline
{\em translator} & The translator instance holding existing scripts. \\
\hline
\end{DoxyParams}


Reimplemented in \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_layered_blending_factory_a6a40cb7ee8dfafc528d9d35cd04dba69}{Ogre\+::\+R\+T\+Shader\+::\+Layered\+Blending\+Factory}}.

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a54a6f6eba1624fef1de9c20eb7b0a6b5}\label{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a54a6f6eba1624fef1de9c20eb7b0a6b5}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!createOrRetrieveInstance@{createOrRetrieveInstance}}
\index{createOrRetrieveInstance@{createOrRetrieveInstance}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{createOrRetrieveInstance()}{createOrRetrieveInstance()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}}$\ast$ Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory\+::create\+Or\+Retrieve\+Instance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_s_g_script_translator}{S\+G\+Script\+Translator}} $\ast$}]{translator }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Retrieve the previous instance the S\+RS in the script translator or create a new instance if not found. 


\begin{DoxyParams}{Parameters}
{\em translator} & The translator instance holding existing scripts. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a23839e5fc35257e4ffb9076e2aaf9409}\label{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a23839e5fc35257e4ffb9076e2aaf9409}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!destroyInstance@{destroyInstance}}
\index{destroyInstance@{destroyInstance}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{destroyInstance()}{destroyInstance()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory\+::destroy\+Instance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$}]{sub\+Render\+State }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Destroy the given instance. 


\begin{DoxyParams}{Parameters}
{\em sub\+Render\+State} & The instance to destroy. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_ab89670718152dcb35f2428cf5909ed99}\label{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_ab89670718152dcb35f2428cf5909ed99}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!destroyAllInstances@{destroyAllInstances}}
\index{destroyAllInstances@{destroyAllInstances}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{destroyAllInstances()}{destroyAllInstances()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory\+::destroy\+All\+Instances (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Destroy all the instances that created by this factory. 

~\newline
 \mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a10b565ec536c0539e44fb1147ef777a4}\label{class_ogre_1_1_r_t_shader_1_1_sub_render_state_factory_a10b565ec536c0539e44fb1147ef777a4}} 
\index{Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}!writeInstance@{writeInstance}}
\index{writeInstance@{writeInstance}!Ogre::RTShader::TextureAtlasSamplerFactory@{Ogre::RTShader::TextureAtlasSamplerFactory}}
\doxysubsubsection{\texorpdfstring{writeInstance()}{writeInstance()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void Ogre\+::\+R\+T\+Shader\+::\+Sub\+Render\+State\+Factory\+::write\+Instance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$}]{ser,  }\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$}]{sub\+Render\+State,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State}} $\ast$}]{src\+Texture\+Unit,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State}} $\ast$}]{dst\+Texture\+Unit }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [inherited]}}



Write the given sub-\/render state instance using the material serializer. 

This method is called in the context of material serialization. It is useful for integrating into bigger context of material exporters from various environment that want to take advantage of the RT Shader System. Sub classes of this interface should override in case they need to write custom properties into the script context. 
\begin{DoxyParams}{Parameters}
{\em ser} & The material serializer instance. \\
\hline
{\em sub\+Render\+State} & The sub render state instance to write down. \\
\hline
{\em src\+Texture\+Unit} & The source texture unit state. \\
\hline
{\em dst\+Texture\+Unit} & The generated shader based texture unit state. \\
\hline
\end{DoxyParams}


Reimplemented in \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_layered_blending_factory_a8aee377a93249d8bd462f2986018fb04}{Ogre\+::\+R\+T\+Shader\+::\+Layered\+Blending\+Factory}}.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_shader_ex_texture_atlas_sampler_8h}{Ogre\+Shader\+Ex\+Texture\+Atlas\+Sampler.\+h}}\end{DoxyCompactItemize}
