Table of Contents

Class Texture

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

Represents a texture resource

public abstract class Texture : GraphicsResource, IDisposable
Inheritance
Texture
Implements
Derived
Inherited Members

Properties

Format

Gets the surface format used by this Texture.

public SurfaceFormat Format { get; }

Property Value

SurfaceFormat

LevelCount

Gets the number of mipmap levels in this Texture.

public int LevelCount { get; }

Property Value

int

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

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()