summaryrefslogtreecommitdiff
path: root/src/SharedDefs.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-17 23:45:03 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-17 23:45:03 +0100
commit385fe4e301ce2c0a408048f6c3d6724ad78d15d4 (patch)
treec61b58af2fc9947337e41d42bd116f48c927d441 /src/SharedDefs.hpp
parent412d46ff65a5b22abde34f11219e00ce71d22f70 (diff)
events: add render event for plugins
Diffstat (limited to 'src/SharedDefs.hpp')
-rw-r--r--src/SharedDefs.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp
index d5daf747..ccde8d11 100644
--- a/src/SharedDefs.hpp
+++ b/src/SharedDefs.hpp
@@ -9,4 +9,15 @@ enum eIcons
ICON_CONFUSED,
ICON_OK,
ICON_NONE
+};
+
+enum eRenderStage
+{
+ RENDER_PRE = 0, /* Before binding the gl context */
+ RENDER_BEGIN, /* Just when the rendering begins, nothing has been rendered yet. Damage, current render data in opengl valid. */
+ RENDER_PRE_WINDOWS, /* Pre windows, post bottom and overlay layers */
+ RENDER_POST_WINDOWS, /* Post windows, pre top/overlay layers, etc */
+ RENDER_LAST_MOMENT, /* Last moment to render with the gl context */
+ RENDER_POST, /* After rendering is finished, gl context not available anymore */
+ RENDER_POST_MIRROR, /* After rendering a mirror */
}; \ No newline at end of file