Added change tool function

This commit is contained in:
andreja6
2020-03-13 10:08:03 -07:00
parent 0ec896e2fd
commit 9a8aff54ff

View File

@@ -483,6 +483,15 @@ void Application::onUserInput(UserInput* ui) {
// Add other key handling here
}
void Application::changeTool(Tool * newTool)
{
delete tool;
if(newTool != NULL)
tool = newTool;
else
tool = new Tool(); //Nulltool
}
void Application::makeFlag(Vector3 &vec, RenderDevice* &rd)
{