mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-17 21:51:20 +02:00
OpenGL Blending
This commit is contained in:
@@ -2356,6 +2356,12 @@ void Enable2D ()
|
|||||||
glMatrixMode (GL_MODELVIEW);
|
glMatrixMode (GL_MODELVIEW);
|
||||||
glPushMatrix ();
|
glPushMatrix ();
|
||||||
glLoadIdentity ();
|
glLoadIdentity ();
|
||||||
|
|
||||||
|
glEnable (GL_BLEND);
|
||||||
|
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
|
||||||
|
glHint( GL_LINE_SMOOTH_HINT, GL_NICEST);
|
||||||
|
glHint( GL_POINT_SMOOTH_HINT, GL_NICEST);
|
||||||
}
|
}
|
||||||
void RenderScene ()
|
void RenderScene ()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user