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?
I’m creating a simple agent-based modeling-framework and I’d like to provide some very simple
Share
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.
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaDrawingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40003290