Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
LWJGL 2d Init With Blend
SUBMITTED BY:
Guest
DATE:
Aug. 19, 2013, 5:43 p.m.
FORMAT:
Text only
SIZE:
320 Bytes
Raw
Download
Tweet
HITS:
763
Go to comments
Report
//Initialize OpenGL
glDisable(GL_DEPTH_TEST);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, 640, 480, 0, 1, -1);
glMatrixMode(GL_MODELVIEW);
glClearColor(0f,0f,0f,0f);
glEnable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus