Added getAspectRatio()
This commit is contained in:
@@ -71,9 +71,9 @@ namespace DREAM {
|
|||||||
return GetScreenHeight();
|
return GetScreenHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
// float Window::getAspectRatio() {
|
float Window::getAspectRatio() {
|
||||||
// return GetScreen
|
return static_cast<float>(m_width) / static_cast<float>(m_height);
|
||||||
// }
|
}
|
||||||
|
|
||||||
bool Window::isFullscreen() {
|
bool Window::isFullscreen() {
|
||||||
return m_fullscreen;
|
return m_fullscreen;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace DREAM {
|
|||||||
|
|
||||||
int getWidth();
|
int getWidth();
|
||||||
int getHeight();
|
int getHeight();
|
||||||
// float getAspectRatio();
|
float getAspectRatio();
|
||||||
|
|
||||||
bool isFullscreen();
|
bool isFullscreen();
|
||||||
bool isVSyncEnabled();
|
bool isVSyncEnabled();
|
||||||
|
|||||||
Reference in New Issue
Block a user