<!-- Wanted to avoid copying .css to each folder, so copied default .css from doxyen in here, kicked out most stuff we don't need for examples and modified some a little bit.
Target was having a single html in each example folder which is created from the main.cpp files and needs no files besides some images below media folder.
<p>You have a node with a mesh, one dynamic light and global ambient light to play around with. You can move the light with cursor-keys and +/-. You can move the camera while left-mouse button is clicked. </p><divclass="fragment"><divclass="line"><spanclass="comment">// TODO: Should be possible to set all material values by the GUI.</span></div><divclass="line"><spanclass="comment">// For now just change the defaultMaterial in CApp::init for the rest.</span></div><divclass="line"><spanclass="comment">// TODO: Allow users to switch between a sphere and a box mesh.</span></div><divclass="line"></div><divclass="line"><spanclass="preprocessor">#include <irrlicht.h></span></div><divclass="line"><spanclass="preprocessor">#include "driverChoice.h"</span></div><divclass="line"><spanclass="preprocessor">#include "exampleHelper.h"</span></div><divclass="line"><spanclass="preprocessor">#include "main.h"</span></div><divclass="line"></div><divclass="line"><spanclass="keyword">using namespace </span>irr;</div><divclass="line"></div><divclass="line"><spanclass="preprocessor">#ifdef _MSC_VER</span></div><divclass="line"><spanclass="preprocessor">#pragma comment(lib, "Irrlicht.lib")</span></div><divclass="line"><spanclass="preprocessor">#endif</span></div></div><!-- fragment --><p> Variables within the empty namespace are globals which are restricted to this file. </p><divclass="fragment"><divclass="line"><spanclass="keyword">namespace</span></div><divclass="line">{</div><divclass="line"><spanclass="comment">// For the gui id's</span></div><divclass="line"><spanclass="keyword">enum</span> EGUI_IDS</div><divclass="line"> {</div><divclass="line"> GUI_ID_OPEN_TEXTURE = 1,</div><divclass="line"> GUI_ID_QUIT,</div><divclass="line"> GUI_ID_MAX</div><divclass="line"> };</div><divclass="line"></div><divclass="line"><spanclass="comment">// Name used in texture selection to clear the textures on the node</span></div><divclass="line"><spanclass="keyword">const</span> core::stringw CLEAR_TEXTURE = L<spanclass="stringliteral">"CLEAR texture"</span>;</div><divclass="line"></div><divclass="line"><spanclass="comment">// some useful color constants</span></div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_BLACK = video::SColor(255, 0, 0, 0);</div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_BLUE = video::SColor(255, 0, 0, 255);</div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_CYAN = video::SColor(255, 0, 255, 255);</div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_GRAY = video::SColor(255, 128,128, 128);</div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_GREEN = video::SColor(255, 0, 255, 0);</div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_MAGENTA = video::SColor(255, 255, 0, 255);</div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_RED = video::SColor(255, 255, 0, 0);</div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_YELLOW = video::SColor(255, 255, 255, 0);</div><divclass="line"><spanclass="keyword">const</span> video::SColor SCOL_WHITE = video::SColor(255, 255, 255, 255);</div><divclass="line">}; <spanclass="comment">// namespace</span></div></div><!-- fragment --><p> Returns a new unique number on each call. </p><divclass="fragment"><divclass="line">s32 makeUniqueId()</div><divclass="line">{</div><divclass="line"><spanclass="keyword">static</span><spanclass="keywordtype">int</span> unique = GUI_ID_MAX;</div><divclass="line"> ++unique;</div><divclass="line"><spanclass="keywordflow">return</span> unique;</div><divclass="line">}</div></div><!-- fragment --><p> Find out which vertex-type is needed for the given material type. </p><divclass="fragment"><divclass="line">vi