Made multiple managers for individual pieces
Added UIManager that renders the UI inside the window
This commit is contained in:
19
BarinkEngine/Input/InputManager.cpp
Normal file
19
BarinkEngine/Input/InputManager.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include "Input/InputManager.h"
|
||||
|
||||
void BarinkEngine::InputManager::PollEvents()
|
||||
{
|
||||
|
||||
for (std::vector<BarinkWindow*>::iterator it = windows.begin(); it != windows.end(); ++it) {
|
||||
(*it)->Poll();
|
||||
}
|
||||
}
|
||||
|
||||
void BarinkEngine::InputManager::attach(BarinkWindow* window)
|
||||
{
|
||||
windows.push_back(window);
|
||||
}
|
||||
|
||||
BarinkEngine::InputManager::InputManager()
|
||||
{
|
||||
windows = std::vector<BarinkWindow*>();
|
||||
}
|
Reference in New Issue
Block a user