зеркало из https://github.com/mono/SkiaSharp.git
Add SKShader binding to create Improved Perlin noise (#1056)
This commit is contained in:
Родитель
fedffbb519
Коммит
5e1f9a4132
|
@ -212,6 +212,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)
|
||||
{
|
||||
var size = (SKSizeI)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);
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче