# 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:
Ykkrosh
2006-09-27 16:54:23 +00:00
parent 2f53eea71a
commit b6c1022566
20 changed files with 291 additions and 204 deletions
@@ -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));