Reapply changes to develop (I reset the changes in this branch because an error)
Reapply changes to develop (I reset the changes in this branch because an error)
Starting light engine from cInit class. Still need to read the parameters from config file
Making some tests with gamelamp class
This needs to be done in HPL1Engine, not in the game! In the game we just need to add the menu option
Adding new menu entry. Almost there...
Option added. Need to include OpenIL object inside HPL1Engine
Some changes in the attribute name of openil node. And now, each time the glowstick is used, a green light is send to the light coordinator
OpenIL initialization goes in HPL1Engine
Some dummy tests
Added threads library, to make some tests
Glowstick is already working!
Added FlashLight. It may need more work, because it's created as ambient light, and it's really a directional light
Looking for the best place to load the openil LightSources
Testing creation of lights after map loading
Logging some things. Now, I know where to create openil light sources (after loading the map). But they need to be updated inside iLigh3D::UpdateLogic method.
Testing with a static light source. Not really important
Added more logging
Lights handled via GameLamp class. This is temporary, but it's fine for testing
Code to play any kind of light, properly integrated with SetLit method of GameLamp class. Still need some calculations to get spot parameters