mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Add possibility to add callback front or back (for different rendering
priorities)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user