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