A window that can draw 2D. Adds only the 2D drawing surface on top of IWindow's lifecycle/input.
More...
#include <IWindow2.hpp>
|
| virtual | ~IWindow2 ()=default |
| |
| virtual void | beginDraw ()=0 |
| | allowing to draw 2D on the window
|
| |
| virtual void | drawPoly (IPolygon *polygon)=0 |
| | draw a polygon
|
| |
| virtual void | drawSprite (ISprite *sprite)=0 |
| | draw a sprite
|
| |
| virtual void | drawText (IText *text)=0 |
| | draw a text
|
| |
| virtual void | endDraw ()=0 |
| | end the 2D drawing
|
| |
| virtual | ~IWindow ()=default |
| | Destroy the IWindow object.
|
| |
| virtual bool | isOpen ()=0 |
| | notice if the window is open
|
| |
| virtual void | close ()=0 |
| | close the window
|
| |
| virtual Vector2f | getPosition ()=0 |
| | Where the window sits on the desktop, in pixels, origin top-left of the primary screen.
|
| |
| virtual void | setPosition (Vector2f position)=0 |
| | Move the window on the desktop.
|
| |
| virtual Vector2f | getSize ()=0 |
| | The drawable area, in pixels - NOT the desktop size. A hit-test built on IMouse::getPosition() compares against this one.
|
| |
| virtual void | setSize (Vector2f size)=0 |
| | Resize the drawable area.
|
| |
| virtual void | setFrameLimit (int32_t limit)=0 |
| | Set the Frame Limit object.
|
| |
| virtual void | setMouseVisibility (bool visible)=0 |
| | Show or hide the system cursor over THIS window.
|
| |
| virtual int32_t | getDelta ()=0 |
| | Get the Delta object.
|
| |
| virtual bool | pollEvent ()=0 |
| | Drains the whole native queue for this frame and refreshes device state. This is the frame's event pump.
|
| |
| virtual void | eventClose ()=0 |
| | notice the window that a close was requested
|
| |
A window that can draw 2D. Adds only the 2D drawing surface on top of IWindow's lifecycle/input.
◆ ~IWindow2()
| virtual graphic::IWindow2::~IWindow2 |
( |
| ) |
|
|
virtualdefault |
◆ beginDraw()
| virtual void graphic::IWindow2::beginDraw |
( |
| ) |
|
|
pure virtual |
allowing to draw 2D on the window
◆ drawPoly()
| virtual void graphic::IWindow2::drawPoly |
( |
IPolygon * |
polygon | ) |
|
|
pure virtual |
draw a polygon
- Parameters
-
◆ drawSprite()
| virtual void graphic::IWindow2::drawSprite |
( |
ISprite * |
sprite | ) |
|
|
pure virtual |
◆ drawText()
| virtual void graphic::IWindow2::drawText |
( |
IText * |
text | ) |
|
|
pure virtual |
◆ endDraw()
| virtual void graphic::IWindow2::endDraw |
( |
| ) |
|
|
pure virtual |
The documentation for this interface was generated from the following file: