12345678910111213141516171819202122232425262728293031323334 |
- //
- // Created by jovian on 18/07/17.
- //
- #ifndef TINYSHOOTER_VISUAL_H
- #define TINYSHOOTER_VISUAL_H
- #include <box2d/box2d.h>
- #include <vector>
- /* class Visual :
- * Describe something to show.
- */
- #define DEFAULT_ZOOM 100.0f // Default Box2D/pixel scale
- 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; // Id of SDL texture
- b2Vec2 m_relPos; // From left top corner
- float m_angle; // Angle of object
- };
- void clearVisuals(std::vector<Visual*> &scope);
- #endif //TINYSHOOTER_VISUAL_H
|