igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
IWindow2.hpp
Go to the documentation of this file.
1
11#ifndef IWINDOW2_HPP_
12 #define IWINDOW2_HPP_
13 #include "IWindow.hpp"
14 #include "../graphic/IPolygon.hpp"
15 #include "../graphic/ISprite.hpp"
16 #include "../graphic/IText.hpp"
17
18namespace graphic {
19
25 class IWindow2 : public IWindow {
26
27 public:
28
29 virtual ~IWindow2() = default;
30
34 virtual void beginDraw() = 0;
35
41 virtual void drawPoly(IPolygon *polygon) = 0;
42
48 virtual void drawSprite(ISprite *sprite) = 0;
49
53 virtual void drawText(IText *text) = 0;
54
58 virtual void endDraw() = 0;
59 };
60
61} // namespace graphic
62
65#endif /* !IWINDOW2_HPP_ */
Polygon interface.
Definition IPolygon.hpp:34
Sprite interface.
Definition ISprite.hpp:22
Text interface.
Definition IText.hpp:26
A window that can draw 2D. Adds only the 2D drawing surface on top of IWindow's lifecycle/input.
Definition IWindow2.hpp:25
virtual ~IWindow2()=default
virtual void drawSprite(ISprite *sprite)=0
draw a sprite
virtual void beginDraw()=0
allowing to draw 2D on the window
virtual void endDraw()=0
end the 2D drawing
virtual void drawPoly(IPolygon *polygon)=0
draw a polygon
virtual void drawText(IText *text)=0
draw a text
Window lifecycle. No drawing here : every window, 2D-capable or not, has to open, close and pump its ...
Definition IWindow.hpp:27
Definition IGamepad.hpp:14