mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
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.
25 lines
610 B
C++
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__
|