关于iPhone的Texture2D实现问题

时间:2010-06-19 21:22:35

标签: iphone objective-c texture2d

我正在尝试使用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();

0 个答案:

没有答案