ShishGL
1.0
A simple modular cross-platform graphics library
Shape2D.hpp
Go to the documentation of this file.
1
//
2
// Created by shishqa on 11/26/20.
3
//
4
5
#ifndef SHISHGL_SHAPE2D_HPP
6
#define SHISHGL_SHAPE2D_HPP
7
/*============================================================================*/
8
#include "
Frame.hpp
"
9
/*============================================================================*/
10
namespace
Sh
{
11
12
class
Shape2D
{
13
public
:
14
15
[[nodiscard]]
16
virtual
bool
contains
(
const
Frame
& viewport,
17
const
Vector2<double>
& point)
const
= 0;
18
19
virtual
void
draw
(
const
Frame
& viewport)
const
= 0;
20
21
virtual
~Shape2D
() =
default
;
22
23
};
24
25
}
26
/*============================================================================*/
27
#endif //SHISHGL_SHAPE2D_HPP
Sh::Shape2D
Definition:
Shape2D.hpp:12
Sh::Frame
Definition:
Frame.hpp:9
Sh::Vector2< double >
Sh::Shape2D::contains
virtual bool contains(const Frame &viewport, const Vector2< double > &point) const =0
Sh
Definition:
CoreApplication.hpp:10
Frame.hpp
Sh::Shape2D::~Shape2D
virtual ~Shape2D()=default
Sh::Shape2D::draw
virtual void draw(const Frame &viewport) const =0
include
ShishGL
GUI
UIWindow
Shapes
Shape2D.hpp
Generated by
1.8.20