Hi all it's been a long time...
I'm now working on a 3D FPS game and i got a big problem. This has never happend before : the glColor4f is not working with alpha value.
I know we need glEnable(GL_BLEND) and a glBlendFunc, i already done that, but it's not working. The only thing i arrive to get is a complete black screen or the hud object to be not rendered.
So my code :
The 3D/2D switcher :
--SOLVED--
Now the main render loop (in my main game class)
--SOLVED--
Now the draw rect void
--SOLVED--
The color binder system
--SOLVED--
The game init code
--SOLVED--
WorldClient, Player and Camera classes are not needed, it's only related to the HUD rendering.
After that, i would like to ask you a question : is there any way to make a start3D2D and end3D2D functions like in GarrysMod ? So i can render my texts (that are 2D verticies) in the 3D world (that have only 3D verticies).
Anyway, in first i need the HUD part to be working before thinking of any start3D2D thing...
Thanks by advance,
Yuri6037