Show / Hide Table of Contents

Class ExposedTexture

A texture which reveals an opaque ITextureHandle which holds the pointer to the pixel data one the GPU Use this texture only for special cases. To make this texture known to the RenderContext one has to call RegisterTexture(ExposedTexture) Current use case: Fusse.ImGui.

Inheritance
System.Object
Texture
ExposedTexture
Implements
ITexture
IExposedTexture
ITextureBase
System.IDisposable
Inherited Members
Texture.TextureChanged
Texture.SessionUniqueIdentifier
Texture.ImageData
Texture.PathAndName
Texture.Width
Texture.Height
Texture.PixelData
Texture.PixelFormat
Texture.IsEmpty
Texture.DoGenerateMipMaps
Texture.WrapMode
Texture.FilterMode
Texture.TextureType
Texture.Blt(Int32, Int32, IImageData, Int32, Int32, Int32, Int32)
Texture.ScanLines(Int32, Int32, Int32, Int32)
Texture.Dispose(Boolean)
Texture.Dispose()
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 ExposedTexture : Texture, ITexture, IExposedTexture, ITextureBase, IDisposable

Constructors

ExposedTexture(IImageData, Boolean, TextureFilterMode, TextureWrapMode)

Initialize a Texture from an existing IImageData. The input IImageData will be copied into this Texture via command.

Declaration
public ExposedTexture(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.

ExposedTexture(Byte[], Int32, Int32, ImagePixelFormat, Boolean, TextureFilterMode, TextureWrapMode)

Constructor initializes a Texture from a pixelData byte buffer, width and height in pixels and ImagePixelFormat.

Declaration
public ExposedTexture(byte[] pixelData, int width, int height, ImagePixelFormat colorFormat, bool generateMipMaps = true, TextureFilterMode filterMode = TextureFilterMode.LinearMipmapLinear, TextureWrapMode wrapMode = TextureWrapMode.Repeat)
Parameters
Type Name Description
System.Byte[] pixelData
System.Int32 width
System.Int32 height
ImagePixelFormat colorFormat
System.Boolean generateMipMaps
TextureFilterMode filterMode
TextureWrapMode wrapMode

Properties

TextureHandle

The opaque ITextureHandle to the pixel data on the GPU

Declaration
public ITextureHandle TextureHandle { get; }
Property Value
Type Description
ITextureHandle

Implements

ITexture
IExposedTexture
ITextureBase
System.IDisposable
Generated by DocFX
GitHub Repo
Back to top