Esempio n. 1
0
File: txt.c Progetto: rvba/minuit
void txt_draw_direct_2d(char *string,float pos[3],float *color,float scale)
{
	char *cursor = string;

	skt_color(color[0],color[1],color[2],1);

	while(*cursor)
	{
		txt_draw_letter(*cursor);
		glTranslatef(LETTER_SPACE,0,0);
		cursor++;
	}
}
Esempio n. 2
0
File: txt.c Progetto: rvba/minuit
int letter_make(char letter,float *color)
{
	t_context *C = ctx_get();
	int indice = glGenLists(1);
	float width = C->ui->font_width;

	glNewList(indice,GL_COMPILE);
		glDisable(GL_LIGHTING);
		skt_color(color[0],color[1],color[2],color[3]);
		glLineWidth(width);
		txt_draw_letter(letter);
	glEndList();

	return indice;
}
Esempio n. 3
0
void skt_tint(const char tint[])
{
	if     (is(tint,"white")) skt_color(1,1,1,0);
	else if(is(tint,"black")) skt_color(0,0,0,0);
	else if(is(tint,"red")) skt_color(1,0,0,1);
}