\hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode}{}\section{A\+CG\+:\+:Scene\+Graph\+:\+:Light\+Source\+Node Class Reference}
\label{classACG_1_1SceneGraph_1_1LightSourceNode}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+Node}}


{\ttfamily \#include $<$A\+C\+G/\+Scenegraph/\+Light\+Source\+Node.\+hh$>$}

Inheritance diagram for A\+CG\+:\+:Scene\+Graph\+:\+:Light\+Source\+Node\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classACG_1_1SceneGraph_1_1LightSourceNode}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source}
\begin{DoxyCompactList}\small\item\em Structure to hold options for one \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a9afb745e2ed5770dcb4ce4a7a1e1485c}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a9afb745e2ed5770dcb4ce4a7a1e1485c}} 
\hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a9afb745e2ed5770dcb4ce4a7a1e1485c}{Light\+Source\+Node} (\hyperlink{classACG_1_1SceneGraph_1_1BaseNode}{Base\+Node} $\ast$\+\_\+parent=0, const std\+::string \&\+\_\+name=\char`\"{}$<$Light\+Source\+Node$>$\char`\"{})
\begin{DoxyCompactList}\small\item\em Default constructor. Applies all properties. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a9e3738c325f78eb2432151cf9c15c504}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a9e3738c325f78eb2432151cf9c15c504}} 
virtual \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a9e3738c325f78eb2432151cf9c15c504}{$\sim$\+Light\+Source\+Node} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_af876b1d015fd6c270dbbe5623db1b514}\label{classACG_1_1SceneGraph_1_1LightSourceNode_af876b1d015fd6c270dbbe5623db1b514}} 
{\bfseries A\+C\+G\+\_\+\+C\+L\+A\+S\+S\+N\+A\+ME} (\hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode}{Light\+Source\+Node})
\item 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a91c5c3274864dc2023e00a9afa2f28a7}{enter} (\hyperlink{classACG_1_1GLState}{G\+L\+State} \&\+\_\+state, const \hyperlink{classACG_1_1SceneGraph_1_1DrawModes_1_1DrawMode}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+drawmode) override
\begin{DoxyCompactList}\small\item\em set current Light Sources \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_aaca9d3ec761ff164f96cbc0b44b06417}\label{classACG_1_1SceneGraph_1_1LightSourceNode_aaca9d3ec761ff164f96cbc0b44b06417}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_aaca9d3ec761ff164f96cbc0b44b06417}{leave} (\hyperlink{classACG_1_1GLState}{G\+L\+State} \&\+\_\+state, const \hyperlink{classACG_1_1SceneGraph_1_1DrawModes_1_1DrawMode}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+drawmode) override
\begin{DoxyCompactList}\small\item\em restores original Light Sources \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_ac9a1ac903fcfbadfb4c33551aef60375}\label{classACG_1_1SceneGraph_1_1LightSourceNode_ac9a1ac903fcfbadfb4c33551aef60375}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_ac9a1ac903fcfbadfb4c33551aef60375}{enable} (G\+Lenum \+\_\+nr)
\begin{DoxyCompactList}\small\item\em enable \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \+\_\+nr \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_af07a6f656866fd445f0aca2177c6f4dd}\label{classACG_1_1SceneGraph_1_1LightSourceNode_af07a6f656866fd445f0aca2177c6f4dd}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_af07a6f656866fd445f0aca2177c6f4dd}{disable} (G\+Lenum \+\_\+nr)
\begin{DoxyCompactList}\small\item\em disable \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \+\_\+nr \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_aae437d1669e93b39de39e88b047cd8f7}\label{classACG_1_1SceneGraph_1_1LightSourceNode_aae437d1669e93b39de39e88b047cd8f7}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_aae437d1669e93b39de39e88b047cd8f7}{set\+\_\+position} (G\+Lenum \+\_\+nr, \hyperlink{namespaceACG_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \+\_\+pos)
\begin{DoxyCompactList}\small\item\em set position ( \+\_\+pos = 1) or direction ( \+\_\+pos = 0) of \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a7627902e39d04a3bb01cb73087acb48e}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a7627902e39d04a3bb01cb73087acb48e}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a7627902e39d04a3bb01cb73087acb48e}{set\+\_\+position} (G\+Lenum \+\_\+nr, \hyperlink{namespaceACG_a86c28120e8596ee7d03e58b7300f59bc}{Vec3f} \+\_\+pos)
\begin{DoxyCompactList}\small\item\em set position for Point-\/\+Light\+Source \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a20a3d3544dcc7cf5c2b49d6db5d8b805}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a20a3d3544dcc7cf5c2b49d6db5d8b805}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a20a3d3544dcc7cf5c2b49d6db5d8b805}{set\+\_\+direction} (G\+Lenum \+\_\+nr, \hyperlink{namespaceACG_a86c28120e8596ee7d03e58b7300f59bc}{Vec3f} \+\_\+pos)
\begin{DoxyCompactList}\small\item\em set direction for directional \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a57c33d302de0c0c40d1b93b4f70e9235}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a57c33d302de0c0c40d1b93b4f70e9235}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a57c33d302de0c0c40d1b93b4f70e9235}{set\+\_\+ambient\+\_\+color} (G\+Lenum \+\_\+nr, \hyperlink{namespaceACG_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \+\_\+color)
\begin{DoxyCompactList}\small\item\em set Ambient color for \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \+\_\+nr \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a7b7b10843463e8035f97bb01fe6632e7}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a7b7b10843463e8035f97bb01fe6632e7}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a7b7b10843463e8035f97bb01fe6632e7}{set\+\_\+diffuse\+\_\+color} (G\+Lenum \+\_\+nr, \hyperlink{namespaceACG_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \+\_\+color)
\begin{DoxyCompactList}\small\item\em set Diffuse color for \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \+\_\+nr \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_aeeb81d2d542827fa3ca149b393ab2320}\label{classACG_1_1SceneGraph_1_1LightSourceNode_aeeb81d2d542827fa3ca149b393ab2320}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_aeeb81d2d542827fa3ca149b393ab2320}{set\+\_\+specular\+\_\+color} (G\+Lenum \+\_\+nr, \hyperlink{namespaceACG_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \+\_\+color)
\begin{DoxyCompactList}\small\item\em set Specular color for \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \+\_\+nr \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_ad6dca89fa2a7b888aa1e7a3a6c0b2a91}\label{classACG_1_1SceneGraph_1_1LightSourceNode_ad6dca89fa2a7b888aa1e7a3a6c0b2a91}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_ad6dca89fa2a7b888aa1e7a3a6c0b2a91}{fixed\+\_\+position} (G\+Lenum \+\_\+nr, bool \+\_\+state)
\begin{DoxyCompactList}\small\item\em make \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} fixed or moveable with Model\+View\+Matrix \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_aeaf66bf6d9b297995b7cd9191cbfef28}\label{classACG_1_1SceneGraph_1_1LightSourceNode_aeaf66bf6d9b297995b7cd9191cbfef28}} 
int \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_aeaf66bf6d9b297995b7cd9191cbfef28}{gl2index} (G\+Lenum \+\_\+nr)
\begin{DoxyCompactList}\small\item\em return index in vector for G\+L\+\_\+\+L\+I\+G\+H\+T$\ast$ \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a95bee8f67eb798d322d58cf2823f9d52}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a95bee8f67eb798d322d58cf2823f9d52}} 
G\+Lenum \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a95bee8f67eb798d322d58cf2823f9d52}{index2gl} (int \+\_\+nr)
\begin{DoxyCompactList}\small\item\em return G\+L\+\_\+\+L\+I\+G\+H\+T$\ast$ for light \+\_\+nr \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_ae5c6fe6751834244efb1064a8f967724}\label{classACG_1_1SceneGraph_1_1LightSourceNode_ae5c6fe6751834244efb1064a8f967724}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_ae5c6fe6751834244efb1064a8f967724}{set\+\_\+parameters} (G\+Lenum \+\_\+index, \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \&\+\_\+light)
\begin{DoxyCompactList}\small\item\em set \+\_\+light Options in Open\+GL for G\+L\+\_\+\+L\+I\+G\+H\+T\+::\+\_\+index \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a954fdbd15654d4bd47258f8bccb12d1e}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a954fdbd15654d4bd47258f8bccb12d1e}} 
void \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a954fdbd15654d4bd47258f8bccb12d1e}{get\+\_\+parameters} (G\+Lenum \+\_\+index, \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} \&\+\_\+light)
\begin{DoxyCompactList}\small\item\em get \+\_\+light Options in Open\+GL for G\+L\+\_\+\+L\+I\+G\+H\+T\+::\+\_\+index \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_aa34df03a09086af1bd67e474ced1dcfa}\label{classACG_1_1SceneGraph_1_1LightSourceNode_aa34df03a09086af1bd67e474ced1dcfa}} 
std\+::vector$<$ \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} $>$ \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_aa34df03a09086af1bd67e474ced1dcfa}{lights\+\_\+}
\begin{DoxyCompactList}\small\item\em store Light\+Sources of this node \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_af1a4da2a87297df9514d40952f8e84e7}\label{classACG_1_1SceneGraph_1_1LightSourceNode_af1a4da2a87297df9514d40952f8e84e7}} 
std\+::vector$<$ \hyperlink{structACG_1_1SceneGraph_1_1LightSourceNode_1_1LightSource}{Light\+Source} $>$ \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_af1a4da2a87297df9514d40952f8e84e7}{lights\+Save\+\_\+}
\begin{DoxyCompactList}\small\item\em save old Light\+Sources \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Set Light\+Sources (0 to 7) for this node and all its children. All changes will be done in the \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_a91c5c3274864dc2023e00a9afa2f28a7}{enter()} method undone in the \hyperlink{classACG_1_1SceneGraph_1_1LightSourceNode_aaca9d3ec761ff164f96cbc0b44b06417}{leave()} method. 

Definition at line 85 of file Light\+Source\+Node.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1LightSourceNode_a91c5c3274864dc2023e00a9afa2f28a7}\label{classACG_1_1SceneGraph_1_1LightSourceNode_a91c5c3274864dc2023e00a9afa2f28a7}} 
\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+Node}!enter@{enter}}
\index{enter@{enter}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+Node}}
\subsubsection{\texorpdfstring{enter()}{enter()}}
{\footnotesize\ttfamily void A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+Node\+::enter (\begin{DoxyParamCaption}\item[{\hyperlink{classACG_1_1GLState}{G\+L\+State} \&}]{\+\_\+state,  }\item[{const \hyperlink{classACG_1_1SceneGraph_1_1DrawModes_1_1DrawMode}{Draw\+Modes\+::\+Draw\+Mode} \&}]{\+\_\+drawmode }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}}



set current Light Sources 

transfer G\+L-\/preferences to lights\+Save\+\_\+ 

Definition at line 81 of file Light\+Source\+Node.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/Light\+Source\+Node.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/Light\+Source\+Node.\+cc\end{DoxyCompactItemize}
