Example #1
0
    public virtual Quad createMesh()
    {
        var quad = new Quad(transform.Translation, transform.Forward, transform.Down, transform.Right, width, height);

        if (cropArea != Rectangle.Empty) {
            quad.cropTextureToRectangle(cropArea, textures[texture_index].Width, textures[texture_index].Height);
        }

        return quad;
    }