Hello again fellow programmers. I'm currently confused about some blending behavior. Let me explain the situation first:
I'm makin a menu and have a Background with 80% opacity in a dark gray color. On this background i will now render a green square with 100% opacity and as you can see from the image this works just fine:
Next i render a red square on this background. The red square has 50% opacity and overlaps the green square. Now the green square shouldn't let anything through (according to my logic, 'cause it has 100% opacity and thus shouldn't let anything through) but the game behind the green square is visible nevertheless as you can see in the next pic:
Any idea why this is happening? If you need my code you can find it here. The relevant files should be Graphics.cpp, MenuManager.cpp and MenuItem.cpp
Thank you in advance for helping.