Adding procedural C openGL functions to an iPhone project

Posted by user309595 on Stack Overflow See other posts from Stack Overflow or by user309595
Published on 2010-04-05T23:33:40Z Indexed on 2010/04/05 23:43 UTC
Read the original article Hit count: 178

Filed under:
|
|
|
|

I want to add a few drawing functions to an iPhone project for drawing things. Something like drawTile(x,y,len,wid); which would call openGL to draw a box somewhere. I should just be able to write a procedural C file to do this but the openGL libraries are objective C and I'm getting weird errors. Do I have to make a class for all of my drawing commands and call class methods?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about opengl