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()
|
||||
|
||||
@@ -67,7 +67,8 @@ public:
|
||||
|
||||
// add function to call during Draw
|
||||
typedef void (* RenderingCallback)(void);
|
||||
void AddDrawCallback(RenderingCallback function);
|
||||
void PushFrontDrawCallback(RenderingCallback function);
|
||||
void PushBackDrawCallback(RenderingCallback function);
|
||||
|
||||
// request screenshot
|
||||
void RequestScreenshot();
|
||||
|
||||
Reference in New Issue
Block a user