Current status of SDL.
This commit is contained in:
@@ -17,6 +17,13 @@ namespace hdk::sdl {
|
||||
SDL_DisplayOrientation GetCurrentOrientation() const { return SDL_GetCurrentDisplayOrientation(*this); }
|
||||
const SDL_DisplayMode* GetDesktopMode() const { return SDL_GetDesktopDisplayMode(*this); }
|
||||
bool GetBounds(SDL_Rect* rect) const { return SDL_GetDisplayBounds(*this, rect); }
|
||||
SDL_Rect GetBounds() const {
|
||||
SDL_Rect rect;
|
||||
if (GetBounds(&rect)) {
|
||||
return rect;
|
||||
}
|
||||
return SDL_Rect{ 0, 0, 0, 0 };
|
||||
}
|
||||
float GetContentScale() const { return SDL_GetDisplayContentScale(*this); }
|
||||
static Display GetForPoint(const SDL_Point* point) { return Display(SDL_GetDisplayForPoint(point)); }
|
||||
static Display GetForRect(const SDL_Rect* rect) { return Display(SDL_GetDisplayForRect(rect)); }
|
||||
|
||||
Reference in New Issue
Block a user