Working on Window
This commit is contained in:
3
src/Engine/Window/Window.cpp
Normal file
3
src/Engine/Window/Window.cpp
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace DREAM {
|
||||
// TODO: Implement Window functions
|
||||
}
|
||||
41
src/Engine/Window/Window.hpp
Normal file
41
src/Engine/Window/Window.hpp
Normal file
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace DREAM {
|
||||
struct WindowConfig {
|
||||
int m_width { 1280 };
|
||||
int m_height { 720 };
|
||||
|
||||
bool m_Fullscreen { false };
|
||||
bool m_vsync { false };
|
||||
bool m_resizable { false } ;
|
||||
};
|
||||
|
||||
namespace Window {
|
||||
void init(WindowConfig& config);
|
||||
|
||||
void setWidth(int width);
|
||||
void setHeight(int height);
|
||||
|
||||
void setSize(int width, int height);
|
||||
void setFullscreen(bool enabled);
|
||||
void toggleFullscreen();
|
||||
|
||||
void setTitle(const std::string& title);
|
||||
void setPosition(int x, int y);
|
||||
|
||||
int getWidth();
|
||||
int getHeight();
|
||||
float getAspectRatio();
|
||||
|
||||
bool isFullscreen();
|
||||
bool isVSyncEnabled();
|
||||
bool isResizable();
|
||||
|
||||
int getMonitorIndex();
|
||||
int getMonitorRefreshRate();
|
||||
int getMonitorWidth();
|
||||
int getMonitorHeight();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user