我正在尝试使用Texture2D绘制文本,但我得到的只是一个大的白色方块。怎么了?
glPushMatrix();
glRotatef(rodar+30, 0, 1, 0);
glEnable(GL_BLEND);
tex = [[Texture2D alloc] initWithString:@"imm" dimensions:CGSizeMake(2,1) alignment:UITextAlignmentCenter fontName:@"arial" fontSize:5];
[tex drawAtPoint:CGPointMake(0, 1)];
[tex release];
glDisable(GL_BLEND);
glPopMatrix();