Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BOX_H
- #define BOX_H
- #include "Box2D.h"
- #include <SFML/Graphics.hpp>
- class Box
- {
- public:
- Box();
- Box(b2World* World, int MouseX, int MouseY);
- virtual ~Box();
- void update();
- sf::Sprite getSprite();
- void setTexture(sf::Texture);
- protected:
- sf::Sprite sprite;
- b2BodyDef BodyDef;
- b2Body* Body;
- b2PolygonShape Shape;
- b2FixtureDef FixtureDef;
- private:
- };
- #endif // BOX_H
Advertisement
Add Comment
Please, Sign In to add comment