如何在opengl es中为用户分数渲染文本

时间:2011-03-17 05:45:03

标签: iphone opengl-es

  

可能重复:
  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);

任何帮助,请

1 个答案:

答案 0 :(得分:1)

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

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