Table of Contents

Class TextureSurfaceManager

Namespace
Sdl3Sharp.Video.Rendering
Assembly
Sdl3Sharp.dll

Manages and represents the entire pixel data of a locked Texture or a partial rectangle of it as a Surface

public abstract class TextureSurfaceManager : IDisposable
Inheritance
TextureSurfaceManager
Implements
Derived
Inherited Members

Properties

Surface

Gets the Surface representing the locked area of the Texture

public Surface? Surface { get; }

Property Value

Surface

The Surface representing the locked area of the Texture, or null if the Texture is not locked

Remarks

As an optimization, the pixel data of the Surface made available for editing don't necessarily contain the old (at the time of locking) texture data.

Notice: The Surface's pixel memory is write-only, and if you need to keep a copy of the texture data you should do that at the application level.

You must dispose the TextureSurfaceManager to unlock the Texture and apply the changes made to the pixel data of the Surface.

Texture

Gets the locked texture

public abstract Texture? Texture { get; }

Property Value

Texture

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

Methods

Dispose()

Disposes this TexturePixelMemoryManager, unlocking the associated Texture

public void Dispose()

Remarks

Calling this method will unlock the associated Texture, if it's still locked, applying any changes made to the pixel data of the Surface, and rendering the Surface invalid and making its pixel memory inaccessible.

~TextureSurfaceManager()

protected ~TextureSurfaceManager()