- glBindTexture(GL_TEXTURE_2D, tex);
- glbegin(gl_quads);
- glColor4f(1,1,1,0);
- gltexcoord2f(0,0);
- glvertex3f(-0.5,-0.5,-3);
- glColor4f(1,1,1,0);
- gltexcoord2f(0,1);
- glvertex3f(-0.5, 0.5,-3);
- glColor4f(1,1,1,1);
- gltexcoord2f(1,1);
- glvertex3f( 0.5, 0.5,-3);
- glColor4f(1,1,1,1);
- gltexcoord2f(1,0);
- glvertex3f( 0.5,-0.5,-3);
- glend;
- glEnable(GL_BLEND);
- glBlendFunc(gl_src_alpha,GL_dst_alpha);
- glBindTexture(GL_TEXTURE_2D, tex2);
- glbegin(gl_quads);
- glColor4f(1,1,1,1);
- gltexcoord2f(0,0);
- glvertex3f(-0.5,-0.5,-3);
- glColor4f(1,1,1,1);
- gltexcoord2f(0,1);
- glvertex3f(-0.5, 0.5,-3);
- glColor4f(1,1,1,0);
- gltexcoord2f(1,1);
- glvertex3f( 0.5, 0.5,-3);
- glColor4f(1,1,1,0);
- gltexcoord2f(1,0);
- glvertex3f( 0.5,-0.5,-3);
- glend;
- gldisable(gl_blend);
- SwapBuffers(form1.myDC);