0ad/source/tools/atlas/GameInterface/ActorViewer.h
Ykkrosh 2f53eea71a Actor Viewer: Added controls for wireframe, background colour, move-when-walking. Reduced CPU usage when 'playing' things with no animation.
Color: Moved SColor* structs into SColor.h, so they can be used without
indirectly including CVector[34]D.
Terrain: Added 'base colour', for the Actor Viewer to be able to
modulate the colour of normally-white terrain.
Removed some "using namespace std" (because it doesn't make the code
easier to read, and it defeats the point of namespaces, and the rest of
the code doesn't do it).

This was SVN commit r4392.
2006-09-26 01:44:20 +00:00

30 lines
552 B
C++

#ifndef ACTORVIEWER_H__
#define ACTORVIEWER_H__
struct ActorViewerImpl;
struct SColor4ub;
class ActorViewer
{
public:
ActorViewer();
~ActorViewer();
void SetActor(const CStrW& id, const CStrW& animation);
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__