![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
Sdl Window class. More...
#include <SdlWindow.hpp>
Public Member Functions | |
SdlWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title) | |
Construct a new Sdl Window object. | |
~SdlWindow () | |
Destroy the Sdl 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 |
begin the 2D drawing | |
void | drawPoly (graphic::IPolygon *polygon) override |
draw a polygon | |
void | drawSprite (graphic::ISprite *sprite) override |
draw a sprite | |
void | endDraw () override |
end the 2D drawing | |
void | beginMode3 (graphic::ICamera *camera) override |
allowing to draw 3D on the window | |
virtual 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 | |
bool | is_open |
SDL_Window * | _window |
SDL_Renderer * | _renderer |
SdlEvent * | _event |
__int32_t | _frameLimit |
__uint64_t | _start |
__uint64_t | _end |
float | _delta |
Sdl Window class.