Click or drag to resize

Texture Class

Texture implements IImageData and is used inside RenderContext to render bitmaps in fusee.
Inheritance Hierarchy
SystemObject
  Fusee.Engine.CoreTexture

Namespace:  Fusee.Engine.Core
Assembly:  Fusee.Engine.Core (in Fusee.Engine.Core.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class Texture : ITexture, IImageData, 
	IDisposable

The Texture type exposes the following members.

Constructors
  NameDescription
Public methodTexture(IImageData)
Initialize a Texture from an existing IImageData. The input IImageData will be copied into this Texture via command.
Public methodTexture(Byte, Int32, Int32, ImagePixelFormat)
Constructor initializes a Texture from a pixelData byte buffer, width and height in pixels and ImagePixelFormat.
Top
Properties
  NameDescription
Public propertyHeight
Height in pixels.
Public propertyIsEmpty
Checks if an image contains no data by checking if Width or Height is 0.
Public propertyPixelData
The raw Pixeldata byte buffer. This byte buffer will be uploaded to the GPU inside RenderContext
Public propertyPixelFormat
Provides additional information abut this Texture's pixel encoding.
Public propertyWidth
Width in pixels.
Top
Methods
  NameDescription
Public methodBlt
Copies a rectangular block of pixel data from a source image to a this image (Blt = BlockTransfer).
Public methodDispose
Implementation of the IDisposable interface.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor calls Dispose in order to fire TextureChanged event.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodScanLines
Retrieve a rectangular block from this image that is represented by horizontal ScanLines from top to bottom along width and height, beginning at offsets xSrc and ySrc.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventTextureChanged
TextureChanged event notifies observing TextureManager about property changes and the Texture's disposal.
Top
Fields
  NameDescription
Public fieldSessionUniqueIdentifier
SessionUniqueIdentifier is used to verify a Textures's uniqueness in the current session.
Top
See Also