mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
# 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.
This commit is contained in:
@@ -31,6 +31,13 @@ typedef boost::signals::scoped_connection ObservableScopedConnection;
|
||||
template <typename T> class Observable : public T
|
||||
{
|
||||
public:
|
||||
Observable() {}
|
||||
|
||||
template <typename T1>
|
||||
explicit Observable(const T1& a1) : T(a1) {}
|
||||
template <typename T1, typename T2>
|
||||
explicit Observable(T1& a1, T2 a2) : T(a1, a2) {}
|
||||
|
||||
template<typename C> ObservableConnection RegisterObserver(int order, void (C::*callback) (const T&), C* obj)
|
||||
{
|
||||
return m_Signal.connect(order, boost::bind(std::mem_fun(callback), obj, _1));
|
||||
|
||||
Reference in New Issue
Block a user