pharo-graphics / sparta

Sparta is a canvas on top of Skia.
https://gtoolkit.com
MIT License
1 stars 1 forks source link

FFIExternalArray #4

Closed tinchodias closed 2 years ago

tinchodias commented 2 years ago

There are 9 references to FFIExternalArray in Sparta-Cairo. Such class is tagged as deprecated, so it is candidate to be replaced... by what? I don't know yet.

Hopefully, the replacement will be more efficient. It is used like this:

    originX := FFIExternalArray externalNewType: 'double' size: 1.
    originY := FFIExternalArray externalNewType: 'double' size: 1.
    cornerX := FFIExternalArray externalNewType: 'double' size: 1.
    cornerY := FFIExternalArray externalNewType: 'double' size: 1.

Where the corresponding FFI type was to be looked up in execution time.