Table of Contents

Class TexturePixelMemoryManager<TDriver>

Namespace
Sdl3Sharp.Video.Rendering
Assembly
Sdl3Sharp.dll

Manages and represents the entire pixel memory of a locked Texture<TDriver> or a partial rectangle of it

public sealed class TexturePixelMemoryManager<TDriver> : TexturePixelMemoryManager, IDisposable where TDriver : notnull, IRenderingDriver

Type Parameters

TDriver

The type of the rendering driver associated with the Texture<TDriver>

Inheritance
TexturePixelMemoryManager<TDriver>
Implements
Inherited Members

Properties

IsPinned

Gets a value indicating whether the Texture is currently locked (pinned)

public override bool IsPinned { get; }

Property Value

bool

true if the Texture is currently locked (pinned); otherwise, false (Texture is null in that case)

Texture

Gets the locked texture

public override Texture<TDriver>? Texture { get; }

Property Value

Texture<TDriver>

The locked texture, or null if the texture is not locked

Methods

Dispose(bool)

Disposes the TexturePixelMemoryManager, unlocking the associated Texture

protected override void Dispose(bool disposing)

Parameters

disposing bool

A value indicating whether this method is called from Dispose() (true) or from the finalizer (false)

Remarks

Calling this method unlocks the associated Texture, if it's still locked, applying any changes made to the pixel data, and making its pixel memory inaccessible until it's locked again.

See Also