Fixed OnEvent logic, Updated example

This commit is contained in:
Robert 2020-05-16 20:09:21 +02:00
parent 05c7cddfd3
commit bf6b934b9b
4 changed files with 19 additions and 16 deletions

View file

@ -7,7 +7,9 @@ class MyWindow :
{
public:
MyWindow(Uint32 width, Uint32 height, const char* title) :
RenderWindow(sdlu::Vector2u(width, height), title, NULL, NULL)
RenderWindow(sdlu::Vector2u(width, height), title,
SDL_WINDOW_RESIZABLE,
NULL)
{
// Empty
}
@ -21,7 +23,7 @@ void sdlu::RenderWindow::OnCreate()
bool sdlu::RenderWindow::OnResize()
{
std::cout << "Window was Resized!" << std::endl;
return false;
return true;
}
void sdlu::RenderWindow::OnClose()