开发者

OpenGL ES on Iphone simulator

i just started to learn it and i'm checking some tutorials to begin with it. I have played with OpenGL and C++ a few months ago and now i decided to try it on iphone, but i'm having a problem after this line code:

- (void)drawFrame
{
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glLoadIdentity();
}

It says:

Terminating in response to SpringBoard's termination.

Why is that? Do i forgo开发者_开发知识库t something?


There is nothing wrong with the above code. If you need some help, I used these excellent tutorials on using OpenGL on the iPhone. Maybe they can help you too! Hope that Helps!


Are you using OpenGL ES 1.1 or 2.0? In 2.0 glLoadIdentity() does not exist anymore check the OpenGL ES 2.0 man pages for what functions are in 2.0.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜