Click or drag to resize
Ab4d.SharpEngine logo

TextureFactory Class

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

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

The TextureFactory type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreate1x1RawImageData(Color3) Create a RawImageData with data array filled with a single pixel from the specified color.
Public methodStatic memberCreate1x1RawImageData(Color4) Create a RawImageData with data array filled with a single pixel from the specified color.
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 memberCreateGradientColors(Color3, Color3, Int32) Returns an array with arraySize colors that represent a color gradient between two specified colors.
Public methodStatic memberCreateGradientColors(GradientStop, Int32, Boolean) Returns an array with arraySize colors that represent a color gradient that is defined by the specified gradientStops.
Public methodStatic memberCreateGradientColors(Color4, Color4, Int32, Boolean) Returns an array with arraySize colors that represent a color gradient between two specified colors.
Public methodStatic memberCreateGradientRawImageData(Color3, Color3, Int32, Boolean) Create a RawImageData with data array filled with color gradient between the two specified colors.
Public methodStatic memberCreateGradientRawImageData(Color4, Color4, Int32, Boolean) Create a RawImageData with data array filled with color gradient between the two specified colors.
Public methodStatic memberCreateGradientRawImageData(GradientStop, Int32, Boolean, Boolean) Create a RawImageData with data array filled with color gradient defined by the given array of gradient stops.
Public methodStatic memberCreateGradientTexture(VulkanDevice, Color3, Color3, Int32, Boolean, String) Create a texture with color gradient between two specified colors.
Public methodStatic memberCreateGradientTexture(VulkanDevice, Color4, Color4, Int32, Boolean, String) Create a texture with color gradient between the two specified colors.
Public methodStatic memberCreateGradientTexture(VulkanDevice, GradientStop, Int32, Boolean, Boolean, String) Create a texture with color gradient defined by the given array of gradient stops.
Public methodStatic memberCreateHeightRawImageData(Single, GradientStop, Boolean) Create a RawImageData with data array filled with colors from the height data and specified gradient stops.
Public methodStatic memberCreateHeightRawImageData(Single, Single, Single, GradientStop, Boolean) Create a RawImageData with data array filled with colors from the height data and specified gradient stops.
Public methodStatic memberCreateHeightTexture(VulkanDevice, Single, GradientStop, Boolean, String) Create a texture from the height data and specified gradient stops.
Public methodStatic memberCreateHeightTexture(VulkanDevice, Single, Single, Single, GradientStop, Boolean, 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. 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