Reputation: 1567
I am about to start development on small project that will use the graphics object in C++ for it's main purpose.
I am also planning on making a Mac OSX version so my question is:
What would the OBJ-C equivalent be for something like.
graphics->DrawString();
Probably nothing so simple and I'm guessing CoreGraphics but have no idea how to do it.
Thanks
EDIT: As has been pointed out to me, my question should be:
What are the Obj-C library equivalents of .Net's system.drawing and how would I do something like DrawString()
Upvotes: 0
Views: 296
Reputation: 26429
graphics->DrawString();
That's not C++. This is .NET framework, which has very little to do with C++, because (thankfully) it is not a part of C++ programming language. C++ has no classes/functions to deal with graphics or fonts.
Since you want to do cross-platform development, I'd suggest to drop .NET, and switch to Qt 4. Qt 4 is cross platform GUI framework supported on Linux, Windows and Mac OS. I'm not sure about using it with Obj-C, but I think Mac OS should have a C++ compiler.
Upvotes: 1