示例#1
0
文件: txt.c 项目: 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++;
	}
}
示例#2
0
文件: txt.c 项目: 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;
}
示例#3
0
文件: sketch.c 项目: BlackBoxe/minuit
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);
}