summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-09-05 10:58:43 (GMT)
committer Simon <simon@hardwired.org.uk>2010-09-05 10:58:43 (GMT)
commit6409b2ae2cd57674848cadc401ed0a9121e3817c (patch)
treeae6aae5a9a90635cd22098f8bd8928a1d77a7a7d
parent719ad7c3595686d817e97e3235cb8eb755d9fc40 (diff)
downloadpowder-6409b2ae2cd57674848cadc401ed0a9121e3817c.zip
powder-6409b2ae2cd57674848cadc401ed0a9121e3817c.tar.gz
OpenGL Blending
-rw-r--r--graphics.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics.c b/graphics.c
index 2cb1a26..62546b7 100644
--- a/graphics.c
+++ b/graphics.c
@@ -2356,6 +2356,12 @@ void Enable2D ()
glMatrixMode (GL_MODELVIEW);
glPushMatrix ();
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 ()
{