Recent

Author Topic: How to use Quartz 2D (CoreGraphics)  (Read 290 times)

daniel_sap

  • Jr. Member
  • **
  • Posts: 57
How to use Quartz 2D (CoreGraphics)
« on: October 07, 2024, 01:01:28 pm »
Hi, I would like to use Quartz 2D for MacOS in Lazarus FPC project.
I didn't find any information about it in internet and free pascal wiki. The closest information was about Metal.
May be, there is some implementation which I'm missing.
Can you, please, share if you have more info on the topic. thanks

daniel_sap

  • Jr. Member
  • **
  • Posts: 57
Re: How to use Quartz 2D (CoreGraphics)
« Reply #1 on: October 10, 2024, 07:27:45 am »
I managed to figure it out.
The Quartz2D is provided by default.
And is used by Cocoa LCL widgets. TCanvas draws using it.
So, no porting is needed.
If you want to look which CoreGraphics units are used and how different function are used you can take a look at
lazarus/lcl/interfaces/cocoa/cocoagdiobjects.pas

 

TinyPortal © 2005-2018