开发者

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜