Cleaning for opengl rendering prep.
This commit is contained in:
parent
402f381d10
commit
7c6a92f4ec
58 changed files with 570 additions and 533 deletions
|
@ -3,7 +3,7 @@
|
|||
WindowManager::WindowManager()
|
||||
: mWindows()
|
||||
{
|
||||
AddWindow(mt::Window::Create());
|
||||
addWindow(mt::Window::Create());
|
||||
}
|
||||
|
||||
WindowManager::~WindowManager()
|
||||
|
@ -16,22 +16,22 @@ std::unique_ptr<WindowManager> WindowManager::Create()
|
|||
return std::make_unique<WindowManager>();
|
||||
}
|
||||
|
||||
void WindowManager::OnPaintEvent(const PaintEvent* event)
|
||||
void WindowManager::onPaintEvent(const PaintEvent* event)
|
||||
{
|
||||
GetMainWindow()->OnPaint(event);
|
||||
getMainWindow()->onPaint(event);
|
||||
}
|
||||
|
||||
void WindowManager::OnMouseEvent(const MouseEvent* event)
|
||||
void WindowManager::onMouseEvent(const MouseEvent* event)
|
||||
{
|
||||
GetMainWindow()->OnMouseEvent(event);
|
||||
getMainWindow()->onMouseEvent(event);
|
||||
}
|
||||
|
||||
void WindowManager::OnKeyboardEvent(const KeyboardEvent* event)
|
||||
void WindowManager::onKeyboardEvent(const KeyboardEvent* event)
|
||||
{
|
||||
GetMainWindow()->OnKeyboardEvent(event);
|
||||
getMainWindow()->onKeyboardEvent(event);
|
||||
}
|
||||
|
||||
void WindowManager::AddWindow(WindowUPtr window)
|
||||
void WindowManager::addWindow(WindowUPtr window)
|
||||
{
|
||||
mWindows.push_back(std::move(window));
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ void WindowManager::clearPlatformWindows()
|
|||
}
|
||||
}
|
||||
|
||||
mt::Window* WindowManager::GetMainWindow() const
|
||||
mt::Window* WindowManager::getMainWindow() const
|
||||
{
|
||||
if(mWindows.size()>0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue