mercoledì 8 novembre 2023

RAD Studio 12 and Skia

[UPDATE]

What I'm going to describe here is due to the fact that I had have installed the Skia version 5.
In Skia vers. 6, the units are been changed as in Rad Studio 12.

Thanks to Glenn Dufke for the info.

[END UPDATE] 

RAD Studio 12 has been released and one of the most important feature is the Skia integration in it.

I have a Delphi project that use some Skia animation; opening it with Rad Studio 12, it don't compile: Skia components (and libraries) are not recognized.

Cause the integration, something has changed: Skia's classes definition are been moved in new units:

from:  Skia.pas, Skia.Vcl.pas

to: System.Skia.pas, Vcl.Skia.pas

For my project, only this change has been necessary to solve my problem.

For a retro-compatibility, I, quickly, have only added this lines to my code:

{$IFDEF VER360}

  , System.Skia, Vcl.Skia

{$ELSE}

  ,  Skia, Skia.Vcl

{$ENDIF} 

That's all!


#codinglikeacoder

Nessun commento:

Posta un commento

[EN] ITDevCon bites 2024

 ITDevCon Bites! 📌 Tuesday 8 October, 2.00 pm - Milan c/o Estensya, Via San Gregorio 55 💥 FREE ITDevCon Bites is a short, half-day edition...