forked from mirrors/0ad
b6c1022566
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.
26 lines
574 B
C++
26 lines
574 B
C++
#ifndef VARIATIONCONTROL_H__
|
|
#define VARIATIONCONTROL_H__
|
|
|
|
#include "General/Observable.h"
|
|
|
|
class ObjectSettings;
|
|
|
|
class VariationControl : public wxScrolledWindow
|
|
{
|
|
public:
|
|
VariationControl(wxWindow* parent, Observable<ObjectSettings>& objectSettings);
|
|
|
|
private:
|
|
void OnSelect(wxCommandEvent& evt);
|
|
void OnObjectSettingsChange(const ObjectSettings& settings);
|
|
void RefreshObjectSettings();
|
|
|
|
ObservableScopedConnection m_Conn;
|
|
|
|
Observable<ObjectSettings>& m_ObjectSettings;
|
|
std::vector<wxComboBox*> m_ComboBoxes;
|
|
wxSizer* m_Sizer;
|
|
};
|
|
|
|
#endif // VARIATIONCONTROL_H__
|