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

[ENG] Delphi 12.2 is coming!

 Are you ready for Delphi 12.2 release? If you want to discover all the news about this new release, follow the link and partecipate to the ...