0ad/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.h
Ykkrosh b6c1022566 # Improved actor-viewer tool (more viewing controls, support for random actor variations)
Also right-click-and-drag to rotate the camera vertically.
Fixed LookAt code (the algorithm in the gluLookAt man page seems to be
wrong).

This was SVN commit r4394.
2006-09-27 16:54:23 +00:00

25 lines
610 B
C++

#ifndef LIGHTCONTROL_H__
#define LIGHTCONTROL_H__
#include "GameInterface/Messages.h"
#include "GameInterface/Shareable.h"
#include "General/Observable.h"
class LightSphere;
class LightControl : public wxPanel
{
public:
LightControl(wxWindow* parent, const wxSize& size, Observable<AtlasMessage::sEnvironmentSettings>& environment);
void OnSettingsChange(const AtlasMessage::sEnvironmentSettings& settings);
void NotifyOtherObservers();
private:
Observable<AtlasMessage::sEnvironmentSettings>& m_Environment;
ObservableScopedConnection m_Conn;
LightSphere* m_Sphere;
};
#endif // LIGHTCONTROL_H__