SFML community forums
Help => Graphics => Topic started by: Wander on January 14, 2011, 07:06:51 am
-
I have the frameworks of a game up and running. I want to add a menu to the gameplay window though. I want it to pause the game, open up the menu, and dull the background (the gameplay screen) to be tinted black.
The only way I can think it to set a window sized Rectangle to 50% opacity and overlay it on the gameplay screen. Is there a better way of doing this?
-
I believe you can do this with opengl shaders as well. Take a look at the SFML PostFX class if using 1.6 or the Shaders class if using 2.0
-
Using shaders seems a bit much for what's asked here... If I were you Wander, I would use the idea of the rectangle.
-
Okay. Thanks you two. :)