Advertisement
Guest User

Light.h

a guest
Dec 26th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #pragma once
  2. #include <SFML/Graphics.hpp>
  3.  
  4. class Light : public sf::Drawable
  5. {
  6.     virtual void draw(sf::RenderTarget &target, sf::RenderStates states) const;
  7.     sf::Vector2f position;
  8.     float radius;
  9.     int precision;
  10. public:
  11.     Light(sf::Vector2f position, float radius, int precision);
  12.     void setPosition(sf::Vector2f position) {
  13.         this->position = position;
  14.     }
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement