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