Add possibility to add callback front or back (for different rendering

priorities)
This commit is contained in:
brunoherbelin
2020-04-03 23:08:59 +02:00
parent 687c462738
commit 91043a0c67
2 changed files with 7 additions and 3 deletions

View File

@@ -186,11 +186,14 @@ bool Rendering::isActive()
}
void Rendering::AddDrawCallback(RenderingCallback function)
void Rendering::PushFrontDrawCallback(RenderingCallback function)
{
drawCallbacks.push_front(function);
}
void Rendering::PushBackDrawCallback(RenderingCallback function)
{
drawCallbacks.push_back(function);
}
void Rendering::Draw()