Click or drag to resize
Ab4d.SharpEngine logo

TextureFactory Methods

The TextureFactory type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreate1x1Texture(VulkanDevice, Color3, String) Create a 1x1 texture filled with the specified color.
Public methodStatic memberCreate1x1Texture(VulkanDevice, Color4, String) Create a 1x1 texture filled with the specified color.
Public methodStatic memberCreateGradientTexture(VulkanDevice, GradientStop, Int32, String) Create a texture with color gradient defined by the given array of gradient stops.
Public methodStatic memberCreateGradientTexture(VulkanDevice, Color3, Color3, Int32, String) Create a texture with color gradient between two specified colors.
Public methodStatic memberCreateGradientTexture(VulkanDevice, Color4, Color4, Int32, String) Create a texture with color gradient between two specified colors.
Public methodStatic memberCreateHeightTexture(VulkanDevice, Single, GradientStop, String) Create a texture from the height data and specified gradient stops.
Public methodStatic memberCreateHeightTexture(VulkanDevice, Single, Single, Single, GradientStop, String) Create a texture from the height data and specified gradient stops.
Public methodStatic memberGetGradientColor 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.
Top
See Also