Add SKShader binding to create Improved Perlin noise (#1056)

This commit is contained in:
Matthew Leibowitz 2019-12-23 14:30:25 +02:00 коммит произвёл GitHub
Родитель fedffbb519
Коммит 5e1f9a4132
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -211,6 +211,11 @@ namespace SkiaSharp
{
return GetObject<SKShader>(SkiaApi.sk_shader_new_perlin_noise_fractal_noise(baseFrequencyX, baseFrequencyY, numOctaves, seed, null));
}
public static SKShader CreatePerlinNoiseImprovedNoise(float baseFrequencyX, float baseFrequencyY, int numOctaves, float z)
{
return GetObject<SKShader>(SkiaApi.sk_shader_new_perlin_noise_improved_noise(baseFrequencyX, baseFrequencyY, numOctaves, z));
}
public static SKShader CreatePerlinNoiseFractalNoise(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, SKPointI tileSize)
{

Просмотреть файл

@ -3199,6 +3199,10 @@ namespace SkiaSharp
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern sk_shader_t sk_shader_new_perlin_noise_fractal_noise (Single baseFrequencyX, Single baseFrequencyY, Int32 numOctaves, Single seed, SKSizeI* tileSize);
// sk_shader_t* sk_shader_new_perlin_noise_improved_noise(float baseFrequencyX, float baseFrequencyY, int numOctaves, float z)
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern sk_shader_t sk_shader_new_perlin_noise_improved_noise (Single baseFrequencyX, Single baseFrequencyY, Int32 numOctaves, Single z);
// sk_shader_t* sk_shader_new_perlin_noise_turbulence(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, const sk_isize_t* tileSize)
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern sk_shader_t sk_shader_new_perlin_noise_turbulence (Single baseFrequencyX, Single baseFrequencyY, Int32 numOctaves, Single seed, SKSizeI* tileSize);

2
externals/skia поставляемый

@ -1 +1 @@
Subproject commit b4b86b6eb8e8e5d397e969ef8b8b7ab59cad333f
Subproject commit 5029445713c6f0612eb30bace90b0cfce2307060

Просмотреть файл

@ -15,7 +15,7 @@ variables:
MANAGED_LINUX_PACKAGES: ttf-ancient-fonts
MONO_VERSION_MACOS: 6_4_0
MONO_VERSION_LINUX: stable-xenial/snapshots/6.4.0
XCODE_VERSION: 11
XCODE_VERSION: 11.3
DOTNET_VERSION: 3.0.x
CONFIGURATION: 'Release'
VM_IMAGE_WINDOWS_NATIVE: Hosted VS2017