Fixed error in OnXXXX functions
This commit is contained in:
parent
0292a167c0
commit
587454e708
5 changed files with 61 additions and 17 deletions
|
@ -13,20 +13,21 @@ public:
|
|||
{
|
||||
// Empty
|
||||
}
|
||||
};
|
||||
|
||||
void sdlu::Window::OnCreate()
|
||||
{
|
||||
std::cout << "Window was Created!" << std::endl;
|
||||
}
|
||||
private:
|
||||
virtual void OnCreate()
|
||||
{
|
||||
std::cout << "MyWindow created!" << std::endl;
|
||||
}
|
||||
|
||||
bool sdlu::Window::OnResize()
|
||||
{
|
||||
std::cout << "Window was Resized!" << std::endl;
|
||||
return true;
|
||||
}
|
||||
virtual bool OnResize()
|
||||
{
|
||||
std::cout << "MyWindow resized!" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
void sdlu::Window::OnClose()
|
||||
{
|
||||
std::cout << "Window was Closed!" << std::endl;
|
||||
}
|
||||
virtual void OnClose()
|
||||
{
|
||||
std::cout << "MyWindow closed!" << std::endl;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue