-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsdlwindowbackend.hpp
More file actions
37 lines (33 loc) · 1.58 KB
/
sdlwindowbackend.hpp
File metadata and controls
37 lines (33 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <fea/config.hpp>
#include <fea/ui/windowbackend.hpp>
//#include <SDL/SDL_opengl.h>
class SDL_Surface;
namespace fea
{
class FEA_API SDLWindowBackend : public WindowBackend
{
public:
SDLWindowBackend();
void open(VideoMode mode, const std::string& title, uint32_t style = Style::Default, const ContextSettings& settings = ContextSettings()) override; //style and settings not supported
void close() override;
bool isOpen() const override;
const ContextSettings getSettings() const override; //not supported
Vec2I getPosition() const override; //not supported
void setPosition(int32_t x, int32_t y) override; //not supported
Vec2I getSize() const override; //not supported
void setSize(int32_t w, int32_t h) override;
void setTitle(const std::string& title) override;
void setIcon(uint32_t width, uint32_t height, const uint8_t* pixels) override; //not supported
void setVisible(bool visible) override; //not supported
void setVSyncEnabled(bool enabled) override; //not supported
void setMouseCursorVisible(bool visible) override; //not supported
void setFramerateLimit(uint32_t limit) override; //not supported
bool setRenderingActive(bool active = true) const override; //not supported
void swapBuffers() override;
void lockCursor(bool lock) override; //not supported
~SDLWindowBackend();
private:
SDL_Surface* mWindow;
};
}