Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <SFML/Graphics.hpp>
- class Light : public sf::Drawable
- {
- virtual void draw(sf::RenderTarget &target, sf::RenderStates states) const;
- sf::Vector2f position;
- float radius;
- int precision;
- public:
- Light(sf::Vector2f position, float radius, int precision);
- void setPosition(sf::Vector2f position) {
- this->position = position;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement