0ad/source/tools/atlas/GameInterface/ActorViewer.h
Ykkrosh b6c1022566 # 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.
2006-09-27 16:54:23 +00:00

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__