开发者

how can I render text in opengl es for user score [duplicate]

开发者 https://www.devze.com 2023-02-17 03:51 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: Is there a decent OpenGL text drawing library for the iPhone SDK?
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

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

I want to render text for my game score I use Texture2D as given below but I get only a white box instead of text

Texture2D*  _textures = [[Textur开发者_运维技巧e2D 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);

any help please


I am not sure if it may help you but its worth a look.

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

0

精彩评论

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

关注公众号