Class Texture1D
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public class Texture1D : Texture, ITexture, ITextureBase, IDisposable
Constructors
Texture1D(IImageData, Boolean, TextureFilterMode, TextureWrapMode)
Initialize a Texture from an existing IImageData. The input IImageData will be copied into this Texture via
Declaration
public Texture1D(IImageData imageData, bool generateMipMaps = true, TextureFilterMode filterMode = TextureFilterMode.NearestMipmapLinear, TextureWrapMode wrapMode = TextureWrapMode.Repeat)
Parameters
Type | Name | Description |
---|---|---|
IImageData | imageData | The existing IImageData that will be copied to initialize a Texture instance. |
System.Boolean | generateMipMaps | Defines if mipmaps are created. |
TextureFilterMode | filterMode | Defines the filter mode TextureFilterMode. |
TextureWrapMode | wrapMode | Defines the wrapping mode TextureWrapMode. |
Texture1D(Byte[], Int32, ImagePixelFormat, Boolean, TextureFilterMode, TextureWrapMode)
Constructor initializes a Texture from a pixelData byte buffer, width in pixels and ImagePixelFormat.
Declaration
public Texture1D(byte[] pixelData, int width, ImagePixelFormat colorFormat, bool generateMipMaps = true, TextureFilterMode filterMode = TextureFilterMode.LinearMipmapLinear, TextureWrapMode wrapMode = TextureWrapMode.Repeat)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | pixelData | The raw pixelData byte buffer that makes up the texture. |
System.Int32 | width | Width in pixels. |
ImagePixelFormat | colorFormat | Provides additional information about pixel encoding. |
System.Boolean | generateMipMaps | Defines if mipmaps are created. |
TextureFilterMode | filterMode | Defines the filter mode TextureFilterMode. |
TextureWrapMode | wrapMode | Defines the wrapping mode TextureWrapMode. |
Implements
System.IDisposable