Method ToTexture2D
ToTexture2D(Texture, GraphicsDevice)
Converts an AsepriteDotNet Texture to a MonoGame Texture2D object.
public static Texture2D ToTexture2D(this Texture texture, GraphicsDevice device)
Parameters
texture
TextureThe AsepriteDotNet texture to convert.
device
GraphicsDeviceThe graphics device used to create graphical resources.
Returns
- Texture2D
The converted MonoGame Texture2D object.