【问题标题】:how can I render text in opengl es for user score [duplicate]如何在opengl es中为用户评分呈现文本[重复]
【发布时间】:2011-03-17 14:21:54
【问题描述】:

可能重复:
Is there a decent OpenGL text drawing library for the iPhone SDK?

我想为我的游戏分数渲染文本我使用如下所示的 Texture2D,但我只得到一个白框而不是文本

Texture2D*  _textures = [[Texture2D alloc] initWithString:@"hedsfdsdssfsffsdsfllo"   dimensions:CGSizeMake(200, 200) alignment:UITextAlignmentLeft fontName:@"Arial" fontSize:30];
[_textures drawAtPoint:CGPointMake(100, 100)];
glColor4f(1.0, 0.0, 1.0, 1.0);

请帮忙

【问题讨论】:

    标签: iphone opengl-es


    【解决方案1】:

    我不确定它是否对您有帮助,但值得一看。

    Is there a decent OpenGL text drawing library for the iPhone SDK?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-16
      • 2010-11-14
      • 2014-08-10
      • 1970-01-01
      • 1970-01-01
      • 2011-09-13
      相关资源
      最近更新 更多