mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Merge branch 'hidpi'
This commit is contained in:
commit
6a59d6c74a
@ -264,6 +264,7 @@ Projects using libSDL2pp:
|
|||||||
|
|
||||||
* [Aargonian](https://github.com/Aargonian)
|
* [Aargonian](https://github.com/Aargonian)
|
||||||
* [Carl Schwope](https://github.com/Lowest0ne)
|
* [Carl Schwope](https://github.com/Lowest0ne)
|
||||||
|
* [Carsten Elton Sorensen](https://github.com/csoren)
|
||||||
* [kumar8600](https://github.com/kumar8600)
|
* [kumar8600](https://github.com/kumar8600)
|
||||||
* [Vladimir Gamalian](https://github.com/vladimirgamalian)
|
* [Vladimir Gamalian](https://github.com/vladimirgamalian)
|
||||||
|
|
||||||
|
@ -76,6 +76,24 @@ int Window::GetHeight() const {
|
|||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Point Window::GetDrawableSize() const {
|
||||||
|
int w, h;
|
||||||
|
SDL_GL_GetDrawableSize(window_, &w, &h);
|
||||||
|
return Point(w, h);
|
||||||
|
}
|
||||||
|
|
||||||
|
int Window::GetDrawableWidth() const {
|
||||||
|
int w, h;
|
||||||
|
SDL_GL_GetDrawableSize(window_, &w, &h);
|
||||||
|
return w;
|
||||||
|
}
|
||||||
|
|
||||||
|
int Window::GetDrawableHeight() const {
|
||||||
|
int w, h;
|
||||||
|
SDL_GL_GetDrawableSize(window_, &w, &h);
|
||||||
|
return h;
|
||||||
|
}
|
||||||
|
|
||||||
Window& Window::SetTitle(const std::string& title) {
|
Window& Window::SetTitle(const std::string& title) {
|
||||||
SDL_SetWindowTitle(window_, title.c_str());
|
SDL_SetWindowTitle(window_, title.c_str());
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -173,6 +173,37 @@ public:
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
int GetHeight() const;
|
int GetHeight() const;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
/// \brief Get drawable dimensions of the window
|
||||||
|
///
|
||||||
|
/// \returns SDL2pp::Point representing dimensions (width and
|
||||||
|
/// height) of the window drawable area in pixels
|
||||||
|
///
|
||||||
|
/// \see http://wiki.libsdl.org/SDL_GL_GetDrawableSize
|
||||||
|
///
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
Point GetDrawableSize() const;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
/// \brief Get drawable width of the window
|
||||||
|
///
|
||||||
|
/// \returns Width of the window drawable area in pixels
|
||||||
|
///
|
||||||
|
/// \see http://wiki.libsdl.org/SDL_GL_GetDrawableSize
|
||||||
|
///
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
int GetDrawableWidth() const;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
/// \brief Get drawable height of the window
|
||||||
|
///
|
||||||
|
/// \returns Height of the window drawable area in pixels
|
||||||
|
///
|
||||||
|
/// \see http://wiki.libsdl.org/SDL_GL_GetDrawableSize
|
||||||
|
///
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
int GetDrawableHeight() const;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Set window title
|
/// \brief Set window title
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user