\section{G\+L\+View}
\label{group__GLView}\index{G\+L\+View@{G\+L\+View}}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef enum \hyperlink{group__GLView_gaabffbc1312be12b222eb67916e9645d1}{\+\_\+\+Elm\+\_\+\+G\+L\+View\+\_\+\+Mode} \hyperlink{group__GLView_ga66921b1aacf3e65935a0d6c2576ac096}{Elm\+\_\+\+G\+L\+View\+\_\+\+Mode}\label{group__GLView_ga66921b1aacf3e65935a0d6c2576ac096}

\begin{DoxyCompactList}\small\item\em Defines mode of G\+L\+View. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__GLView_gaabffbc1312be12b222eb67916e9645d1}{\+\_\+\+Elm\+\_\+\+G\+L\+View\+\_\+\+Mode} \{ , \\*
\hyperlink{group__GLView_ggaabffbc1312be12b222eb67916e9645d1a00c61dd95cd14bfb20b575e85913990a}{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+A\+L\+P\+H\+A} = (1$<$$<$1), 
\\*
\hyperlink{group__GLView_ggaabffbc1312be12b222eb67916e9645d1ae9ce1787f812b721ab0403ebaad3e442}{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+E\+P\+T\+H} = (1$<$$<$2), 
\\*
\hyperlink{group__GLView_ggaabffbc1312be12b222eb67916e9645d1aa211a5cc15ed45dd9e3fcbd82d53e9ba}{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+S\+T\+E\+N\+C\+I\+L} = (1$<$$<$3), 
\\*
\hyperlink{group__GLView_ggaabffbc1312be12b222eb67916e9645d1a94421f49b912f6a4d479f5f453a165af}{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+I\+R\+E\+C\+T} = (1$<$$<$4)
 \}
\begin{DoxyCompactList}\small\item\em Defines mode of G\+L\+View. \end{DoxyCompactList}\item 
enum \hyperlink{group__GLView_ga9c04014df286723f9716e974d9bb7912}{Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy} \{ \\*
\hyperlink{group__GLView_gga9c04014df286723f9716e974d9bb7912a47c5f63726f7746784449b3025facf16}{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E} = 1, 
\\*
\hyperlink{group__GLView_gga9c04014df286723f9716e974d9bb7912a837f5662af71d4399b4af3dee43ff2b7}{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E} = 2
 \}
\begin{DoxyCompactList}\small\item\em Defines a policy for the glview resizing. \end{DoxyCompactList}\item 
enum \hyperlink{group__GLView_gab0c73016c3466ad45c58814aae34ddd7}{Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy} \{ \\*
\hyperlink{group__GLView_ggab0c73016c3466ad45c58814aae34ddd7a17ebe10e3b42f7668727e5ee4f9a382a}{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D} = 1, 
\\*
\hyperlink{group__GLView_ggab0c73016c3466ad45c58814aae34ddd7a8753d328ffccbe05bb656ab5d94cf6f8}{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+A\+L\+W\+A\+Y\+S} = 2
 \}
\begin{DoxyCompactList}\small\item\em Defines a policy for gl rendering. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
E\+O\+A\+P\+I void \hyperlink{group__GLView_gabe446857099f7d72fb1bdcd86cf035e9}{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+set} (int w, int h)
\begin{DoxyCompactList}\small\item\em Sets the size of the glview. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I void \hyperlink{group__GLView_ga699624984812979c15abf2ad8d466e60}{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+get} (int $\ast$w, int $\ast$h)
\begin{DoxyCompactList}\small\item\em Get the size of the glview. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I Eina\+\_\+\+Bool \hyperlink{group__GLView_ga4f63efb4345e70e1dce5065da5b470e0}{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set} (\hyperlink{group__GLView_ga9c04014df286723f9716e974d9bb7912}{Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy} policy)
\begin{DoxyCompactList}\small\item\em Set the resize policy for the glview object. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I void \hyperlink{group__GLView_gaf6353b789fa06c31918dec30570d91a2}{elm\+\_\+obj\+\_\+glview\+\_\+changed\+\_\+set} (void)\label{group__GLView_gaf6353b789fa06c31918dec30570d91a2}

\begin{DoxyCompactList}\small\item\em Notifies that there has been changes in the G\+L\+View. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I void \hyperlink{group__GLView_gacaa3f4b13bda2ce0c9e1499463184c90}{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set} (Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb func)
\begin{DoxyCompactList}\small\item\em Set the resize function that gets called when resize happens. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I void \hyperlink{group__GLView_ga6e4385a74b857772994f251fa053dbd1}{elm\+\_\+obj\+\_\+glview\+\_\+del\+\_\+func\+\_\+set} (Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb func)
\begin{DoxyCompactList}\small\item\em Set the render function that runs in the main loop. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I void \hyperlink{group__GLView_ga61930e619ec3de01f9318cf7ae3713db}{elm\+\_\+obj\+\_\+glview\+\_\+init\+\_\+func\+\_\+set} (Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb func)
\begin{DoxyCompactList}\small\item\em Set the init function that runs once in the main loop. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I Eina\+\_\+\+Bool \hyperlink{group__GLView_ga975fb40617779f0da13a879ec73fdce2}{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set} (\hyperlink{group__GLView_gab0c73016c3466ad45c58814aae34ddd7}{Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy} policy)
\begin{DoxyCompactList}\small\item\em Set the render policy for the glview object. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I Eina\+\_\+\+Bool \hyperlink{group__GLView_ga19916464180a0e89daf22bcbb2972be4}{elm\+\_\+obj\+\_\+glview\+\_\+mode\+\_\+set} (\hyperlink{group__GLView_ga66921b1aacf3e65935a0d6c2576ac096}{Elm\+\_\+\+G\+L\+View\+\_\+\+Mode} mode)
\begin{DoxyCompactList}\small\item\em Set the mode of the G\+L\+View. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I void \hyperlink{group__GLView_ga8b9bb150a15e8da001bc78b803deea1f}{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+func\+\_\+set} (Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb func)
\begin{DoxyCompactList}\small\item\em Set the render function that runs in the main loop. \end{DoxyCompactList}\item 
E\+O\+A\+P\+I Evas\+\_\+\+G\+L\+\_\+\+A\+P\+I $\ast$ \hyperlink{group__GLView_gaf26d05959f1fd4fd49745765867876dc}{elm\+\_\+obj\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get} (void)
\begin{DoxyCompactList}\small\item\em Get the gl api struct for gl rendering. \end{DoxyCompactList}\item 
void \hyperlink{group__GLView_gaf3d653bf22d5832a388eb07a52c8c677}{elm\+\_\+glview\+\_\+size\+\_\+set} (Eo $\ast$obj, int w, int h)
\begin{DoxyCompactList}\small\item\em Sets the size of the glview. \end{DoxyCompactList}\item 
void \hyperlink{group__GLView_gad9ba240e50a74c8f6edcf35779642ddd}{elm\+\_\+glview\+\_\+size\+\_\+get} (const Eo $\ast$obj, int $\ast$w, int $\ast$h)
\begin{DoxyCompactList}\small\item\em Get the size of the glview. \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__GLView_ga381e2fa40de5c51b6527cc226883bd06}{elm\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set} (Eo $\ast$obj, \hyperlink{group__GLView_ga9c04014df286723f9716e974d9bb7912}{Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy} policy)
\begin{DoxyCompactList}\small\item\em Set the resize policy for the glview object. \end{DoxyCompactList}\item 
void \hyperlink{group__GLView_gadcfe1ded039db77d94f5e31159d2ee38}{elm\+\_\+glview\+\_\+changed\+\_\+set} (Eo $\ast$obj)\label{group__GLView_gadcfe1ded039db77d94f5e31159d2ee38}

\begin{DoxyCompactList}\small\item\em Notifies that there has been changes in the G\+L\+View. \end{DoxyCompactList}\item 
void \hyperlink{group__GLView_ga554a321647a821a4bfd184e17084698f}{elm\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set} (Eo $\ast$obj, Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb func)
\begin{DoxyCompactList}\small\item\em Set the resize function that gets called when resize happens. \end{DoxyCompactList}\item 
void \hyperlink{group__GLView_gaead55fe6d5363cab9e37b90b911651e6}{elm\+\_\+glview\+\_\+del\+\_\+func\+\_\+set} (Eo $\ast$obj, Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb func)
\begin{DoxyCompactList}\small\item\em Set the render function that runs in the main loop. \end{DoxyCompactList}\item 
void \hyperlink{group__GLView_gad0503bf2532fde7b00dcb97bbb4cf372}{elm\+\_\+glview\+\_\+init\+\_\+func\+\_\+set} (Eo $\ast$obj, Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb func)
\begin{DoxyCompactList}\small\item\em Set the init function that runs once in the main loop. \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__GLView_ga553afbb3ee4ed41f5086fae5471cdbae}{elm\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set} (Eo $\ast$obj, \hyperlink{group__GLView_gab0c73016c3466ad45c58814aae34ddd7}{Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy} policy)
\begin{DoxyCompactList}\small\item\em Set the render policy for the glview object. \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__GLView_gaf3a9e671d25a6c0f54edef1137effcea}{elm\+\_\+glview\+\_\+mode\+\_\+set} (Eo $\ast$obj, \hyperlink{group__GLView_ga66921b1aacf3e65935a0d6c2576ac096}{Elm\+\_\+\+G\+L\+View\+\_\+\+Mode} mode)
\begin{DoxyCompactList}\small\item\em Set the mode of the G\+L\+View. \end{DoxyCompactList}\item 
void \hyperlink{group__GLView_ga762019fb3c298616cff251dcadb6001a}{elm\+\_\+glview\+\_\+render\+\_\+func\+\_\+set} (Eo $\ast$obj, Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb func)
\begin{DoxyCompactList}\small\item\em Set the render function that runs in the main loop. \end{DoxyCompactList}\item 
Evas\+\_\+\+G\+L\+\_\+\+A\+P\+I $\ast$ \hyperlink{group__GLView_ga34889ae49ae71b360fe990c29eeaae3d}{elm\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get} (const Eo $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the gl api struct for gl rendering. \end{DoxyCompactList}\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__GLView_ga2ab32b7aee3433992b3f0edba5909a42}{elm\+\_\+glview\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new glview to the parent. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics{glview_inheritance_tree}}
\end{DoxyImageNoCaption}


A G\+L\+View widget allows for simple G\+L rendering in elementary environment. G\+L\+View hides all the complicated evas\+\_\+gl details so that the user only has to deal with registering a few callback functions for rendering to a surface using Open\+G\+L A\+P\+Is.

This widget emits the following signals, besides the ones sent from G\+L\+View\+:
\begin{DoxyItemize}
\item {\ttfamily \char`\"{}focused\char`\"{}} -\/ when glview has received focus.
\item {\ttfamily \char`\"{}unfocused\char`\"{}} -\/ when glview has lost focus.
\item {\ttfamily \char`\"{}language,changed\char`\"{}} -\/ the program's language changed
\end{DoxyItemize}

Below is an illustrative example of how to use G\+L\+View and and Open\+G\+L to render in elementary environment. glview\+\_\+example\+\_\+01\+\_\+page 

\subsection{Enumeration Type Documentation}
\index{G\+L\+View@{G\+L\+View}!\+\_\+\+Elm\+\_\+\+G\+L\+View\+\_\+\+Mode@{\+\_\+\+Elm\+\_\+\+G\+L\+View\+\_\+\+Mode}}
\index{\+\_\+\+Elm\+\_\+\+G\+L\+View\+\_\+\+Mode@{\+\_\+\+Elm\+\_\+\+G\+L\+View\+\_\+\+Mode}!G\+L\+View@{G\+L\+View}}
\subsubsection[{\+\_\+\+Elm\+\_\+\+G\+L\+View\+\_\+\+Mode}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf \+\_\+\+Elm\+\_\+\+G\+L\+View\+\_\+\+Mode}}\label{group__GLView_gaabffbc1312be12b222eb67916e9645d1}


Defines mode of G\+L\+View. 

\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+A\+L\+P\+H\+A@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+A\+L\+P\+H\+A}!G\+L\+View@{G\+L\+View}}\index{G\+L\+View@{G\+L\+View}!E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+A\+L\+P\+H\+A@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+A\+L\+P\+H\+A}}\item[{\em 
E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+A\+L\+P\+H\+A\label{group__GLView_ggaabffbc1312be12b222eb67916e9645d1a00c61dd95cd14bfb20b575e85913990a}
}]Alpha channel enabled rendering mode. \index{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+E\+P\+T\+H@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+E\+P\+T\+H}!G\+L\+View@{G\+L\+View}}\index{G\+L\+View@{G\+L\+View}!E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+E\+P\+T\+H@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+E\+P\+T\+H}}\item[{\em 
E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+E\+P\+T\+H\label{group__GLView_ggaabffbc1312be12b222eb67916e9645d1ae9ce1787f812b721ab0403ebaad3e442}
}]Depth buffer enabled rendering mode. \index{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+S\+T\+E\+N\+C\+I\+L@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+S\+T\+E\+N\+C\+I\+L}!G\+L\+View@{G\+L\+View}}\index{G\+L\+View@{G\+L\+View}!E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+S\+T\+E\+N\+C\+I\+L@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+S\+T\+E\+N\+C\+I\+L}}\item[{\em 
E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+S\+T\+E\+N\+C\+I\+L\label{group__GLView_ggaabffbc1312be12b222eb67916e9645d1aa211a5cc15ed45dd9e3fcbd82d53e9ba}
}]Stencil buffer enabled rendering mode. \index{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+I\+R\+E\+C\+T@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+I\+R\+E\+C\+T}!G\+L\+View@{G\+L\+View}}\index{G\+L\+View@{G\+L\+View}!E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+I\+R\+E\+C\+T@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+I\+R\+E\+C\+T}}\item[{\em 
E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+D\+I\+R\+E\+C\+T\label{group__GLView_ggaabffbc1312be12b222eb67916e9645d1a94421f49b912f6a4d479f5f453a165af}
}]Direct rendering optimization hint. \end{description}
\end{Desc}
\index{G\+L\+View@{G\+L\+View}!Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy@{Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy}}
\index{Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy@{Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy}!G\+L\+View@{G\+L\+View}}
\subsubsection[{Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy}}\label{group__GLView_gab0c73016c3466ad45c58814aae34ddd7}


Defines a policy for gl rendering. 

The rendering policy tells glview where to run the gl rendering code. E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D tells glview to call the rendering calls on demand, which means that the rendering code gets called only when it is visible.

\begin{DoxyNote}{Note}
Default is E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D 
\end{DoxyNote}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D}!G\+L\+View@{G\+L\+View}}\index{G\+L\+View@{G\+L\+View}!E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D}}\item[{\em 
E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D\label{group__GLView_ggab0c73016c3466ad45c58814aae34ddd7a17ebe10e3b42f7668727e5ee4f9a382a}
}]Render only when there is a need for redrawing. \index{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+A\+L\+W\+A\+Y\+S@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+A\+L\+W\+A\+Y\+S}!G\+L\+View@{G\+L\+View}}\index{G\+L\+View@{G\+L\+View}!E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+A\+L\+W\+A\+Y\+S@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+A\+L\+W\+A\+Y\+S}}\item[{\em 
E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+A\+L\+W\+A\+Y\+S\label{group__GLView_ggab0c73016c3466ad45c58814aae34ddd7a8753d328ffccbe05bb656ab5d94cf6f8}
}]Render always even when it is not visible. \end{description}
\end{Desc}
\index{G\+L\+View@{G\+L\+View}!Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy@{Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy}}
\index{Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy@{Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy}!G\+L\+View@{G\+L\+View}}
\subsubsection[{Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy}}\label{group__GLView_ga9c04014df286723f9716e974d9bb7912}


Defines a policy for the glview resizing. 

The resizing policy tells glview what to do with the underlying surface when resize happens. E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E will destroy the current surface and recreate the surface to the new size. E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E will instead keep the current surface but only display the result at the desired size scaled.

\begin{DoxyNote}{Note}
Default is E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E 
\end{DoxyNote}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E}!G\+L\+View@{G\+L\+View}}\index{G\+L\+View@{G\+L\+View}!E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E}}\item[{\em 
E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E\label{group__GLView_gga9c04014df286723f9716e974d9bb7912a47c5f63726f7746784449b3025facf16}
}]Resize the internal surface along with the image. \index{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E}!G\+L\+View@{G\+L\+View}}\index{G\+L\+View@{G\+L\+View}!E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E@{E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E}}\item[{\em 
E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E\label{group__GLView_gga9c04014df286723f9716e974d9bb7912a837f5662af71d4399b4af3dee43ff2b7}
}]Only resize the internal image and not the surface. \end{description}
\end{Desc}


\subsection{Function Documentation}
\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+add@{elm\+\_\+glview\+\_\+add}}
\index{elm\+\_\+glview\+\_\+add@{elm\+\_\+glview\+\_\+add}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+add}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+glview\+\_\+add (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__GLView_ga2ab32b7aee3433992b3f0edba5909a42}


Add a new glview to the parent. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new object or N\+U\+L\+L if it cannot be created 
\end{DoxyReturn}
\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+del\+\_\+func\+\_\+set@{elm\+\_\+glview\+\_\+del\+\_\+func\+\_\+set}}
\index{elm\+\_\+glview\+\_\+del\+\_\+func\+\_\+set@{elm\+\_\+glview\+\_\+del\+\_\+func\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+del\+\_\+func\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+glview\+\_\+del\+\_\+func\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb}]{func}
\end{DoxyParamCaption}
)}\label{group__GLView_gaead55fe6d5363cab9e37b90b911651e6}


Set the render function that runs in the main loop. 

The registered del function gets called when G\+L\+View object is deleted. This function allows glview to hide all the rendering context/surface details and have the user just call G\+L calls that they desire when delete happens.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em func} & The delete function to be registered. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+del\+\_\+func\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get@{elm\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get}}
\index{elm\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get@{elm\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+G\+L\+\_\+\+A\+P\+I$\ast$ elm\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Eo $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__GLView_ga34889ae49ae71b360fe990c29eeaae3d}


Get the gl api struct for gl rendering. 

\begin{DoxyReturn}{Returns}
The api object or N\+U\+L\+L if it cannot be created 
\end{DoxyReturn}


References elm\+\_\+obj\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+init\+\_\+func\+\_\+set@{elm\+\_\+glview\+\_\+init\+\_\+func\+\_\+set}}
\index{elm\+\_\+glview\+\_\+init\+\_\+func\+\_\+set@{elm\+\_\+glview\+\_\+init\+\_\+func\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+init\+\_\+func\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+glview\+\_\+init\+\_\+func\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb}]{func}
\end{DoxyParamCaption}
)}\label{group__GLView_gad0503bf2532fde7b00dcb97bbb4cf372}


Set the init function that runs once in the main loop. 

The registered init function gets called once during the render loop. This function allows glview to hide all the rendering context/surface details and have the user just call G\+L calls that they desire for initialization G\+L calls.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em func} & The init function to be registered. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+init\+\_\+func\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+mode\+\_\+set@{elm\+\_\+glview\+\_\+mode\+\_\+set}}
\index{elm\+\_\+glview\+\_\+mode\+\_\+set@{elm\+\_\+glview\+\_\+mode\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+mode\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+glview\+\_\+mode\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{{\bf Elm\+\_\+\+G\+L\+View\+\_\+\+Mode}}]{mode}
\end{DoxyParamCaption}
)}\label{group__GLView_gaf3a9e671d25a6c0f54edef1137effcea}


Set the mode of the G\+L\+View. 

Supports alpha, depth, stencil.

\begin{DoxyReturn}{Returns}
True if set properly.
\end{DoxyReturn}
Direct is a hint for the elm\+\_\+glview to render directly to the window given that the right conditions are met. Otherwise it falls back to rendering to an offscreen buffer before it gets composited to the window.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em mode} & The mode Options O\+R'ed enabling Alpha, Depth, Stencil, Direct. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+mode\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+render\+\_\+func\+\_\+set@{elm\+\_\+glview\+\_\+render\+\_\+func\+\_\+set}}
\index{elm\+\_\+glview\+\_\+render\+\_\+func\+\_\+set@{elm\+\_\+glview\+\_\+render\+\_\+func\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+render\+\_\+func\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+glview\+\_\+render\+\_\+func\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb}]{func}
\end{DoxyParamCaption}
)}\label{group__GLView_ga762019fb3c298616cff251dcadb6001a}


Set the render function that runs in the main loop. 

The render function gets called in the main loop but whether it runs depends on the rendering policy and whether \hyperlink{group__GLView_gadcfe1ded039db77d94f5e31159d2ee38}{elm\+\_\+glview\+\_\+changed\+\_\+set()} gets called.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em func} & The render function to be registered. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+func\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set@{elm\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set}}
\index{elm\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set@{elm\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{{\bf Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy}}]{policy}
\end{DoxyParamCaption}
)}\label{group__GLView_ga553afbb3ee4ed41f5086fae5471cdbae}


Set the render policy for the glview object. 

By default, the render policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D. This policy is set such that during the render loop, glview is only redrawn if it needs to be redrawn. (i.\+e. when it is visible) If the policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+A\+L\+W\+A\+Y\+S, it redraws regardless of whether it is visible or needs redrawing.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em policy} & The render policy. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set@{elm\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set}}
\index{elm\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set@{elm\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb}]{func}
\end{DoxyParamCaption}
)}\label{group__GLView_ga554a321647a821a4bfd184e17084698f}


Set the resize function that gets called when resize happens. 

The resize function gets called during the render loop. This function allows glview to hide all the rendering context/surface details and have the user just call G\+L calls that they desire when resize happens.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em func} & The resize function to be registered. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set@{elm\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set}}
\index{elm\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set@{elm\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{{\bf Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy}}]{policy}
\end{DoxyParamCaption}
)}\label{group__GLView_ga381e2fa40de5c51b6527cc226883bd06}


Set the resize policy for the glview object. 

By default, the resize policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E. When resize is called it destroys the previous surface and recreates the newly specified size. If the policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E, however, glview only scales the image object and not the underlying G\+L Surface.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em policy} & The scaling policy. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+size\+\_\+get@{elm\+\_\+glview\+\_\+size\+\_\+get}}
\index{elm\+\_\+glview\+\_\+size\+\_\+get@{elm\+\_\+glview\+\_\+size\+\_\+get}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+size\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+glview\+\_\+size\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Eo $\ast$}]{obj, }
\item[{int $\ast$}]{w, }
\item[{int $\ast$}]{h}
\end{DoxyParamCaption}
)}\label{group__GLView_gad9ba240e50a74c8f6edcf35779642ddd}


Get the size of the glview. 

Note that this function returns the actual image size of the glview. This means that when the scale policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E, it'll return the non-\/scaled size.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em w} & width of the glview object \\
\hline
\mbox{\tt out}  & {\em h} & height of the glview object \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+get().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+glview\+\_\+size\+\_\+set@{elm\+\_\+glview\+\_\+size\+\_\+set}}
\index{elm\+\_\+glview\+\_\+size\+\_\+set@{elm\+\_\+glview\+\_\+size\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+glview\+\_\+size\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+glview\+\_\+size\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{int}]{w, }
\item[{int}]{h}
\end{DoxyParamCaption}
)}\label{group__GLView_gaf3d653bf22d5832a388eb07a52c8c677}


Sets the size of the glview. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em w} & width of the glview object \\
\hline
\mbox{\tt in}  & {\em h} & height of the glview object \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+del\+\_\+func\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+del\+\_\+func\+\_\+set}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+del\+\_\+func\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+del\+\_\+func\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+del\+\_\+func\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I void elm\+\_\+obj\+\_\+glview\+\_\+del\+\_\+func\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb}]{func}
\end{DoxyParamCaption}
)}\label{group__GLView_ga6e4385a74b857772994f251fa053dbd1}


Set the render function that runs in the main loop. 

The registered del function gets called when G\+L\+View object is deleted. This function allows glview to hide all the rendering context/surface details and have the user just call G\+L calls that they desire when delete happens.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em func} & The delete function to be registered. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+del\+\_\+func\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get@{elm\+\_\+obj\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get@{elm\+\_\+obj\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I Evas\+\_\+\+G\+L\+\_\+\+A\+P\+I$\ast$ elm\+\_\+obj\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{group__GLView_gaf26d05959f1fd4fd49745765867876dc}


Get the gl api struct for gl rendering. 

\begin{DoxyReturn}{Returns}
The api object or N\+U\+L\+L if it cannot be created 
\end{DoxyReturn}


Referenced by elm\+\_\+glview\+\_\+gl\+\_\+api\+\_\+get().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+init\+\_\+func\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+init\+\_\+func\+\_\+set}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+init\+\_\+func\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+init\+\_\+func\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+init\+\_\+func\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I void elm\+\_\+obj\+\_\+glview\+\_\+init\+\_\+func\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb}]{func}
\end{DoxyParamCaption}
)}\label{group__GLView_ga61930e619ec3de01f9318cf7ae3713db}


Set the init function that runs once in the main loop. 

The registered init function gets called once during the render loop. This function allows glview to hide all the rendering context/surface details and have the user just call G\+L calls that they desire for initialization G\+L calls.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em func} & The init function to be registered. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+init\+\_\+func\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+mode\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+mode\+\_\+set}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+mode\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+mode\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+mode\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I Eina\+\_\+\+Bool elm\+\_\+obj\+\_\+glview\+\_\+mode\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Elm\+\_\+\+G\+L\+View\+\_\+\+Mode}}]{mode}
\end{DoxyParamCaption}
)}\label{group__GLView_ga19916464180a0e89daf22bcbb2972be4}


Set the mode of the G\+L\+View. 

Supports alpha, depth, stencil.

\begin{DoxyReturn}{Returns}
True if set properly.
\end{DoxyReturn}
Direct is a hint for the elm\+\_\+glview to render directly to the window given that the right conditions are met. Otherwise it falls back to rendering to an offscreen buffer before it gets composited to the window.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em mode} & The mode Options O\+R'ed enabling Alpha, Depth, Stencil, Direct. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+mode\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+func\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+func\+\_\+set}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+func\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+func\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+func\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I void elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+func\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb}]{func}
\end{DoxyParamCaption}
)}\label{group__GLView_ga8b9bb150a15e8da001bc78b803deea1f}


Set the render function that runs in the main loop. 

The render function gets called in the main loop but whether it runs depends on the rendering policy and whether \hyperlink{group__GLView_gadcfe1ded039db77d94f5e31159d2ee38}{elm\+\_\+glview\+\_\+changed\+\_\+set()} gets called.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em func} & The render function to be registered. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+render\+\_\+func\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I Eina\+\_\+\+Bool elm\+\_\+obj\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Elm\+\_\+\+G\+L\+View\+\_\+\+Render\+\_\+\+Policy}}]{policy}
\end{DoxyParamCaption}
)}\label{group__GLView_ga975fb40617779f0da13a879ec73fdce2}


Set the render policy for the glview object. 

By default, the render policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+O\+N\+\_\+\+D\+E\+M\+A\+N\+D. This policy is set such that during the render loop, glview is only redrawn if it needs to be redrawn. (i.\+e. when it is visible) If the policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+W\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+A\+L\+W\+A\+Y\+S, it redraws regardless of whether it is visible or needs redrawing.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em policy} & The render policy. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+render\+\_\+policy\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I void elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+G\+L\+View\+\_\+\+Func\+\_\+\+Cb}]{func}
\end{DoxyParamCaption}
)}\label{group__GLView_gacaa3f4b13bda2ce0c9e1499463184c90}


Set the resize function that gets called when resize happens. 

The resize function gets called during the render loop. This function allows glview to hide all the rendering context/surface details and have the user just call G\+L calls that they desire when resize happens.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em func} & The resize function to be registered. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+resize\+\_\+func\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I Eina\+\_\+\+Bool elm\+\_\+obj\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Elm\+\_\+\+G\+L\+View\+\_\+\+Resize\+\_\+\+Policy}}]{policy}
\end{DoxyParamCaption}
)}\label{group__GLView_ga4f63efb4345e70e1dce5065da5b470e0}


Set the resize policy for the glview object. 

By default, the resize policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+R\+E\+C\+R\+E\+A\+T\+E. When resize is called it destroys the previous surface and recreates the newly specified size. If the policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E, however, glview only scales the image object and not the underlying G\+L Surface.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em policy} & The scaling policy. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+resize\+\_\+policy\+\_\+set().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+get@{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+get}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+get@{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+get}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I void elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+get (
\begin{DoxyParamCaption}
\item[{int $\ast$}]{w, }
\item[{int $\ast$}]{h}
\end{DoxyParamCaption}
)}\label{group__GLView_ga699624984812979c15abf2ad8d466e60}


Get the size of the glview. 

Note that this function returns the actual image size of the glview. This means that when the scale policy is set to E\+L\+M\+\_\+\+G\+L\+V\+I\+E\+W\+\_\+\+R\+E\+S\+I\+Z\+E\+\_\+\+P\+O\+L\+I\+C\+Y\+\_\+\+S\+C\+A\+L\+E, it'll return the non-\/scaled size.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em w} & width of the glview object \\
\hline
\mbox{\tt out}  & {\em h} & height of the glview object \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+size\+\_\+get().

\index{G\+L\+View@{G\+L\+View}!elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+set}}
\index{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+set@{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+set}!G\+L\+View@{G\+L\+View}}
\subsubsection[{elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I void elm\+\_\+obj\+\_\+glview\+\_\+size\+\_\+set (
\begin{DoxyParamCaption}
\item[{int}]{w, }
\item[{int}]{h}
\end{DoxyParamCaption}
)}\label{group__GLView_gabe446857099f7d72fb1bdcd86cf035e9}


Sets the size of the glview. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em w} & width of the glview object \\
\hline
\mbox{\tt in}  & {\em h} & height of the glview object \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+glview\+\_\+size\+\_\+set().

