0

I have started to learn C++. (Which might be a mistake) Unfortunately, I need an easy to use drawing library like Javas Swing or FX to draw efficiently.

I understand nothing about rendering etc. OpenGL seems to be deprecated and I feel like that is the wrong way to go.

Therefore, I need a beginner-friendly, well-documented Library for C++. Maybe this an Oxymoron.

Kind regards.

1 Answer 1

0

As of May 2019 there is Apple's C drawing library, Quartz 2D. I have used this successfully in a pure C++ application for macOS (no Objective-C). I made it using Xcode. The frameworks needed to draw an image and export it as a file on disk (TIFF format for me) are CoreFoundation, CoreServices, CoreGraphics, ImageIO.

The Quartz 2D programming guide is here: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introduction/Introduction.html.

Unfortunately this guide is marked as no longer being updated; it was last modified in 2017. I hope Apple are not discontinuing Quartz 2D.

I'm not sure how beginner-friendly it is - I found it a bit tedious to work out how to set up the drawing context and so on - but the guide is good.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.