12345678910111213141516171819202122232425262728293031323334 |
- #ifndef TINYSHOOTER_VISUAL_H
- #define TINYSHOOTER_VISUAL_H
- #include <box2d/box2d.h>
- #include <vector>
- #define DEFAULT_ZOOM 100.0f
- class Visual {
- public :
- Visual(unsigned int imgId, const b2Vec2 &relPos, float angle);
- unsigned int getImgId() const;
- const b2Vec2 &getPos() const;
- float getAngle() const;
- protected:
- unsigned int m_imgId;
- b2Vec2 m_relPos;
- float m_angle;
- };
- void clearVisuals(std::vector<Visual*> &scope);
- #endif
|