2018-06-14 18:24:07 +02:00
|
|
|
/*
|
|
|
|
* =====================================================================================
|
|
|
|
*
|
|
|
|
* Filename: Crosshair.hpp
|
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
*
|
|
|
|
* Created: 14/06/2018 18:09:45
|
|
|
|
*
|
|
|
|
* Author: Quentin Bazin, <quent42340@gmail.com>
|
|
|
|
*
|
|
|
|
* =====================================================================================
|
|
|
|
*/
|
|
|
|
#ifndef CROSSHAIR_HPP_
|
|
|
|
#define CROSSHAIR_HPP_
|
|
|
|
|
2018-06-30 17:30:47 +02:00
|
|
|
#include "RectangleShape.hpp"
|
|
|
|
#include "Shader.hpp"
|
2018-06-14 18:24:07 +02:00
|
|
|
|
2018-06-14 21:16:56 +02:00
|
|
|
class Crosshair : public IDrawable {
|
2018-06-14 18:24:07 +02:00
|
|
|
public:
|
|
|
|
Crosshair();
|
|
|
|
|
|
|
|
private:
|
2018-06-14 21:16:56 +02:00
|
|
|
void draw(RenderTarget &target, RenderStates states) const override;
|
|
|
|
|
2018-06-20 01:07:18 +02:00
|
|
|
VertexBuffer m_vbo;
|
2018-06-30 17:30:47 +02:00
|
|
|
|
|
|
|
Shader m_shader;
|
|
|
|
|
|
|
|
RectangleShape m_hShape;
|
|
|
|
RectangleShape m_vShape1;
|
|
|
|
RectangleShape m_vShape2;
|
2018-06-14 18:24:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CROSSHAIR_HPP_
|