PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
Loading...
Searching...
No Matches
SdlWindow Class Reference

Sdl Window class. More...

#include <SdlWindow.hpp>

Inheritance diagram for SdlWindow:
graphic::IWindow

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
 
- Public Member Functions inherited from graphic::IWindow
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
 

Detailed Description

Sdl Window class.


The documentation for this class was generated from the following file: