All pastes #469618 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-03 20:34 UTC
rendered paste body
		/* name */
		if(te->idcode==ID_OB && ((Object*)tselem->id)->type == OB_LAMP){
			Lamp *la = ((Object*)tselem->id)->data;
			char col[4];
					
			col[0] = (char)(la->r * 255);
			col[1] = (char)(la->g * 255);
			col[2] = (char)(la->b * 255);
			col[3] = 255;
			glColor3ubv((GLubyte *)col);
		}
		else if(active==1) BIF_ThemeColor(TH_TEXT_HI); 
		else BIF_ThemeColor(TH_TEXT);
		glRasterPos2i(startx+offsx, *starty+5);
		BIF_RasterPos(startx+offsx, *starty+5);