-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window features #26
Window features #26
Conversation
LeeVangraefschepe
commented
Nov 5, 2023
- Resize toggle
- Icon support (removed from engine added in window)
- Mouse toggle
- Added title set
- Added minimize toggle
- Added hide toggle
- Added require attention flash
- Added window set position
- Added locked aspect ratio
- Added min and max size for window
- Added set size for window
- Removed console from default builds
- -Console Configurations still have the console
- Removed icon constructor - Moved logo.png for default icon - Added SetIcon function in the window class - Added DirectX image data
- Require attention flash - SetPosition - Set AspectRatio - Set min size - Set min & max size - Set size
LeapEngine/GameContext/Window.cpp
Outdated
else glfwRestoreWindow(m_pWindow); | ||
} | ||
|
||
void leap::Window::SetHiden(bool value) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: should be SetHidden
UnnamedAdventureGame/main.cpp
Outdated
|
||
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) | ||
{ | ||
main(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return the value that main returns
void SetAspectRatio(const glm::ivec2& size) const; | ||
|
||
// Warning this function overrides everything the SetLimitSize does. | ||
void SetMinimumSize(const glm::ivec2& size) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add overloads that take two integers (same for other functions that take glm arguments)