Simple texture that uses a mesh to draw itself.
    public class MeshTexture : Texture

Simple texture that uses a mesh to draw itself. It’s limited because flags can’t be changed and region drawing is not supported.

Inheritance Chain

Constructors

    public MeshTexture()

Properties

    public Texture BaseTexture { get; set; }

Sets the base texture that the Mesh will use to draw.

    public Vector2 ImageSize { get; set; }

Sets the size of the image, needed for reference.

    public Mesh Mesh { get; set; }

Sets the mesh used to draw. It must be a mesh using 2D vertices.

Methods

    [Obsolete("GetBaseTexture is deprecated. Use the BaseTexture property instead.")]
    public Texture GetBaseTexture()

Getter for BaseTexture

    [Obsolete("GetImageSize is deprecated. Use the ImageSize property instead.")]
    public Vector2 GetImageSize()

Getter for ImageSize

    [Obsolete("GetMesh is deprecated. Use the Mesh property instead.")]
    public Mesh GetMesh()

Getter for Mesh

    [Obsolete("SetBaseTexture is deprecated. Use the BaseTexture property instead.")]
    public void SetBaseTexture(Texture texture)

Setter for BaseTexture

    [Obsolete("SetImageSize is deprecated. Use the ImageSize property instead.")]
    public void SetImageSize(Vector2 size)

Setter for ImageSize

    [Obsolete("SetMesh is deprecated. Use the Mesh property instead.")]
    public void SetMesh(Mesh mesh)

Setter for Mesh

Tags: