开发者

iPhone OpenGL : Adding a background image

Right so I got all my lovely openGL stuff working and I can开发者_如何学Go change the background colour via the property of the view or even the window however for the love of god I cant change it to an image.

  • I have tried adding it to the nib
  • I have tried adding a UIImageView as a subview.
  • I have tried addiing it as a UIColor with Pattern
  • I tried making the OpenGL view have a clear background and setting the

    image on the actual window.

Still no joy!


Issue a glClear then render 2 triangles (ie a quad) to the screen with the appropriate image texture mapped onto them.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜