Table of Contents

Class Texture

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll
public abstract class Texture : GraphicsResource, IDisposable
Inheritance
Texture
Implements
Derived
Inherited Members

Properties

Format

public SurfaceFormat Format { get; }

Property Value

SurfaceFormat

LevelCount

public int LevelCount { get; }

Property Value

int

Methods

Dispose(bool)

The method that derived classes should override to implement disposing of managed and native resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

True if managed objects should be disposed.

Remarks

Native resources should always be released regardless of the value of the disposing parameter.

GraphicsDeviceResetting()

Called before the device is reset. Allows graphics resources to invalidate their state so they can be recreated after the device reset. Warning: This may be called after a call to Dispose() up until the resource is garbage collected.

protected override void GraphicsDeviceResetting()