![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
define sfml window More...
#include <SfmlWindow.hpp>
Public Member Functions | |
SfmlWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title) | |
Construct a new Sfml Window object. | |
~SfmlWindow ()=default | |
Destroy the Sfml Window object. | |
void | linkEvent (graphic::IEvent *event) override |
link an event to the window | |
bool | isOpen () override |
notice if the window is open | |
void | close () override |
close the window | |
void | setFrameLimit (__int32_t limit) override |
Set the Frame Limit object. | |
__int32_t | getDelta () override |
Get the Delta object. | |
void | beginDraw () override |
allowing to draw 2D on the window | |
virtual void | drawPoly (graphic::IPolygon *polygon) override |
draw a polygon | |
virtual void | drawSprite (graphic::ISprite *sprite) override |
draw a sprite | |
void | endDraw () override |
end the drawing | |
void | beginMode3 (graphic::ICamera *cam) override |
allowing to draw 3D on the window | |
void | drawPoint (const sf::Vector3f &point) |
draw a point | |
void | drawModel (graphic::IModel *model) override |
draw a model | |
void | endMode3 () override |
end the 3D drawing | |
bool | pollEvent () override |
poll the event | |
void | eventClose () override |
close the window | |
![]() | |
virtual | ~IWindow ()=default |
Destroy the IWindow object. | |
Private Attributes | |
sf::RenderWindow | _window |
SfmlEvent * | _event |
SfmlCamera * | _camera |
sf::Clock | _deltaClock |
sf::Time | _deltaTime |
define sfml window