Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CFrameComponentsSDL.hpp
Go to the documentation of this file.
1#ifndef LIBS_SDL_CFRAMECOMPONENTSSDL_HPP_
2#define LIBS_SDL_CFRAMECOMPONENTSSDL_HPP_
3
6
7#include <SDL2/SDL_video.h>
8#include <string>
9
11{
12public:
14 ~CFrameComponentsSDL() override;
15
16 void getSizeScreen(int32_t *xSizeScreen, int32_t *ySizeScreen) override;
17
18private:
27
28 void afterFrame() override;
29 void initApplication(int32_t argc, char **argv) override;
30 void minimizeApplication() override;
31 void runApplication(std::string_view titleApplication, std::string_view pathIconApplication,
32 const iv::ui::ApplicationWidgets &applicationWidgets) override;
33 iv::types::Size screenSize() override;
34 std::shared_ptr<iv::ui::graphics::Image> getImage(iv::ui::resources::ImageResource resource) override;
35 void getSizeScreenInit(uint32_t *xSizeScreen, uint32_t *ySizeScreen) override;
36 IGraphics *getGraphicsRef() override;
37
38 bool hasEvent(CEventGraphics **event) override;
39
40 static EPrvScreen prvHasFullScreen(const std::string &strScreen);
41 static SDL_Window *prvInitScreen(uint64_t *sizeScreenX, uint64_t *sizeScreenY, EPrvScreen screen,
42 SDL_GLContext *contextOpengl);
43
44 uint64_t m_xSizeScreen;
45 uint64_t m_ySizeScreen;
46
48 SDL_Window *m_screenWindow;
49 SDL_GLContext m_contextOpengl;
51};
52
53#endif /* LIBS_SDL_CFRAMECOMPONENTSSDL_HPP_ */
Definition AbstractFrameComponentsGraphics.hpp:30
Definition CEventGraphics.hpp:9
Definition CFrameComponentsSDL.hpp:11
static EPrvScreen prvHasFullScreen(const std::string &strScreen)
Definition CFrameComponentsSDL.cpp:774
IGraphics * getGraphicsRef() override
Definition CFrameComponentsSDL.cpp:262
void getSizeScreen(int32_t *xSizeScreen, int32_t *ySizeScreen) override
Definition CFrameComponentsSDL.cpp:148
uint64_t m_xSizeScreen
Definition CFrameComponentsSDL.hpp:44
void initApplication(int32_t argc, char **argv) override
Definition CFrameComponentsSDL.cpp:173
void minimizeApplication() override
Definition CFrameComponentsSDL.cpp:180
static SDL_Window * prvInitScreen(uint64_t *sizeScreenX, uint64_t *sizeScreenY, EPrvScreen screen, SDL_GLContext *contextOpengl)
Definition CFrameComponentsSDL.cpp:806
bool hasEvent(CEventGraphics **event) override
Definition CFrameComponentsSDL.cpp:679
EPrvScreen m_type
Definition CFrameComponentsSDL.hpp:47
iv::types::Size screenSize() override
Definition CFrameComponentsSDL.cpp:236
SDL_GLContext m_contextOpengl
Definition CFrameComponentsSDL.hpp:49
std::shared_ptr< iv::ui::graphics::Image > getImage(iv::ui::resources::ImageResource resource) override
Definition CFrameComponentsSDL.cpp:246
void afterFrame() override
Definition CFrameComponentsSDL.cpp:167
CFrameComponentsSDL()
Definition CFrameComponentsSDL.cpp:130
SDL_Window * m_screenWindow
Definition CFrameComponentsSDL.hpp:48
~CFrameComponentsSDL() override
Definition CFrameComponentsSDL.cpp:141
void runApplication(std::string_view titleApplication, std::string_view pathIconApplication, const iv::ui::ApplicationWidgets &applicationWidgets) override
Definition CFrameComponentsSDL.cpp:202
EPrvScreen
Definition CFrameComponentsSDL.hpp:20
uint64_t m_ySizeScreen
Definition CFrameComponentsSDL.hpp:45
IGraphics * m_graphics
Definition CFrameComponentsSDL.hpp:50
void getSizeScreenInit(uint32_t *xSizeScreen, uint32_t *ySizeScreen) override
Definition CFrameComponentsSDL.cpp:251
Definition IGraphics.hpp:20
Definition ImageResource.hpp:15
Definition types.hpp:151
Definition structs.hpp:20