Click or drag to resize
Ab4d.SharpEngine logo

TextureFactory Class

TextureFactory is a static helper class that defines methods to create textures.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesTextureFactory

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public static class TextureFactory

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