You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
/// Callback function for the allegro set_display_switch_callback. It will be called when focus is switched away from the game window.
27
+
/// Callback function for the allegro set_display_switch_callback. It will be called when focus is switched away from the game window.
28
+
/// It will temporarily disable positioning of the mouse so that when focus is switched back to the game window, the game window won't fly away because the user clicked the title bar of the window.
/// Callback function for the allegro set_display_switch_callback. It will be called when focus is switched back to the game window. It will temporarily disable positioning of the mouse.
35
-
/// This is so that when focus is switched back to the game window, it avoids having the window fly away because the user clicked the title bar of the window.
35
+
/// Callback function for the allegro set_display_switch_callback. It will be called when focus is switched back to the game window.
std::list<PostEffect> m_PostScreenEffects; //!< List of effects to apply at the end of each frame. This list gets cleared out and re-filled each frame.
195
197
std::list<PostEffect> m_PostSceneEffects; //!< All post-processing effects registered for this draw frame in the scene.
196
198
197
-
std::list<Box> m_PostScreenGlowBoxes; //!< List of screen-relative areas that will be processed with glow.
199
+
std::list<Box> m_PostScreenGlowBoxes; //!< List of areas that will be processed with glow.
198
200
std::list<IntRect> m_GlowAreas; //!< All the areas to do post glow pixel effects on, in scene coordinates.
std::list<PostEffect> m_ScreenRelativeEffects[c_MaxScreenCount]; //!< List of screen relative effects for each player in online multiplayer.
203
+
std::mutex ScreenRelativeEffectsMutex[c_MaxScreenCount]; //!< Mutex for the ScreenRelativeEffects list when accessed by multiple threads in online multiplayer.
202
204
203
205
BITMAP *m_YellowGlow; //!< Bitmap for the yellow dot glow effect.
204
206
BITMAP *m_RedGlow; //!< Bitmap for the red dot glow effect.
@@ -260,12 +262,12 @@ namespace RTE {
260
262
261
263
#pragma region PostProcess Breakdown
262
264
/// <summary>
263
-
///
265
+
/// Draws all the glow dot effects on pixels registered inside glow boxes for this frame. This is called from PostProcess().
264
266
/// </summary>
265
267
voidDrawDotGlowEffects();
266
268
267
269
/// <summary>
268
-
///
270
+
/// Draws all the glow effects registered for this frame. This is called from PostProcess().
0 commit comments