|
TextureFactory Class |
TextureFactory is a static helper class that defines methods to create textures.
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static class TextureFactory
The TextureFactory type exposes the following members.
Methods | Name | Description |
---|
| Create1x1Texture(VulkanDevice, Color3, String) |
Create a 1x1 texture filled with the specified color.
|
| Create1x1Texture(VulkanDevice, Color4, String) |
Create a 1x1 texture filled with the specified color.
|
| CreateGradientTexture(VulkanDevice, GradientStop, Int32, String) |
Create a texture with color gradient defined by the given array of gradient stops.
|
| CreateGradientTexture(VulkanDevice, Color3, Color3, Int32, String) |
Create a texture with color gradient between two specified colors.
|
| CreateGradientTexture(VulkanDevice, Color4, Color4, Int32, String) |
Create a texture with color gradient between two specified colors.
|
| CreateHeightTexture(VulkanDevice, Single, GradientStop, String) |
Create a texture from the height data and specified gradient stops.
|
| CreateHeightTexture(VulkanDevice, Single, Single, Single, GradientStop, String) |
Create a texture from the height data and specified gradient stops.
|
| GetGradientColor |
Compute the interpolated color for the specified value and the given list of gradient stops. The list of
gradient stops must be sorted (from lowest offset to highest). If the value is lower than the offset of
the first entry, the first color is returned. If the value is higher than the offset of the last entry,
the last color is returned. Otherwise, the interpolated color between two corresponding entries is returned.
|
TopSee Also