Reputation: 95558
I'm creating a simple agent-based modeling-framework and I'd like to provide some very simple visualizations. Nothing too fancy, and mainly just 2D graphics. Can I use OpenGL or SDL with Objective C on GNUStep? How would I go about doing this? I tried looking for some examples, but couldn't find any. Will C examples that use OpenGL or SDL play nice with Objective C?
Upvotes: 2
Views: 2022
Reputation: 86
You can use OpenGL on GNUstep but if you just want 2D graphics, you can simply use its graphics operators. Take a look at Cocoa Drawing Guide, The code are pretty much the same. They are much easier to use than OpenGL; can draw curves and more.
Upvotes: 2
Reputation: 434
Sounds like you want OpenGL es. here is a link to a basic tutorial http://www.raywenderlich.com/3664/opengl-es-2-0-for-iphone-tutorial
Upvotes: 0