How to load and display image in OpenGL ES for iphone

后端 未结 2 419
太阳男子
太阳男子 2021-02-06 00:16

I\'m a newbie and trying to display a sprite on my iPhone screen using OpenGL ES. I know its far simpler and easier to do it with cocos2d but now I\'m trying to code directly on

2条回答
  •  梦毁少年i
    2021-02-06 00:40

    I recommend looking at Apple's GLSprite example application. That's exactly what this application does.

    If you want to load PVRTC-compressed textures, look to their PVRTextureLoader example. I use code from this in a sample application I wrote for my iPhone class.

提交回复
热议问题