Texture2D implementation on iPhone problem
Im trying draw text using Texture2D but all I get is a big white square. What wrong?
glPus开发者_如何学ChMatrix();
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();
精彩评论