简体   繁体   中英

C++ Graphics Equivalent In OBJ-C

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()

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM