game/sdlpp/sdlpp_circlerenderer.hpp

32 lines
848 B
C++

#ifndef SDLPP_HPP_CIRCLE_RENDERER
#define SDLPP_HPP_CIRCLE_RENDERER
#include "sdlpp_common.hpp"
#include "sdlpp_renderobject.hpp"
#include <memory>
namespace SDLPP {
class SDLPPSCOPE CircleRender : public RenderObject {
public:
CircleRender() = delete;
virtual ~CircleRender(){};
CircleRender( int x, int y, int rad, std::shared_ptr< Renderer > &r );
CircleRender( int x, int y, int rad, std::shared_ptr< Renderer > &r,
std::shared_ptr< Texture > &t );
CircleRender( int x, int y, int rad, std::shared_ptr< Renderer > &r,
const std::string &img_path );
virtual void render();
virtual int leftmost();
virtual int topmost();
virtual int collisionPushX();
virtual int collisionPushY();
private:
int x_;
int y_;
int rad_;
};
} // end of namespace SDLPP
#endif