Ykkrosh
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.
32 lines
584 B
C++
32 lines
584 B
C++
#ifndef ACTORVIEWER_H__
|
|
#define ACTORVIEWER_H__
|
|
|
|
struct ActorViewerImpl;
|
|
struct SColor4ub;
|
|
class CUnit;
|
|
|
|
class ActorViewer
|
|
{
|
|
public:
|
|
ActorViewer();
|
|
~ActorViewer();
|
|
|
|
void SetActor(const CStrW& id, const CStrW& animation);
|
|
CUnit* GetUnit();
|
|
void SetWalkEnabled(bool enabled);
|
|
void SetBackgroundColour(const SColor4ub& colour);
|
|
void Render();
|
|
void Update(float dt);
|
|
|
|
// Returns whether there is a selected actor which has more than one
|
|
// frame of animation
|
|
bool HasAnimation() const;
|
|
|
|
private:
|
|
ActorViewerImpl& m;
|
|
|
|
NO_COPY_CTOR(ActorViewer);
|
|
};
|
|
|
|
#endif // ACTORVIEWER_H__
|