[Bf-committers] a litle improve !

Joilnen Leite bf-committers@blender.org
Fri, 13 Feb 2004 01:55:23 -0800 (PST)


Hello friends  !

sorry for my bad english!

when i rendering a image and background of infotext in
renderwin is white, i can't see RGBA values :)!
so i think that infotext maybe have a half transparent
background like any movies legends.
like this:

 --- blender/source/blender/src/renderwin.c	2004-01-27
05:55:47.000000000 -0300
+++ renderwin.c	2004-02-12 21:23:58.000000000 -0300
@@ -264,6 +264,13 @@
 	}
 	
 	if (rw->info_text) {
+		float w;
+		glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
+		glEnable(GL_BLEND);
+		w=186.0*strlen(rw->info_text)/30;
+		glColor4f(.5,.5,.5,.25);
+		glRectf(0.0,0.0,w,30.0);
+		glDisable(GL_BLEND);
 		glColor3ub(255, 255, 255);
 		glRasterPos2i(10, 10);
 		BMF_DrawString(G.font, rw->info_text);



very thanks for your attention

pub  1024D/5139533E Joilnen Batista Leite 
F565 BD0B 1A39 390D 827E  03E5 0CD4 0F20 5139 533E


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/