daily update on 20240528 by nitload youmu

This commit is contained in:
Nitload
2024-05-28 11:20:32 +08:00
parent 2e57126ab7
commit de399e22c2
3 changed files with 32 additions and 0 deletions
@@ -0,0 +1,32 @@
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
namespace StgSharp.Graphics
{
public class TextureImage : IImageProvider
{
private Image _tex;
private vec2d[] _texCoord;
Image IImageProvider.ProvideImage()
{
return _tex;
}
public TextureImage(Image image, vec2d[] coord)
{
_tex = image;
_texCoord = coord;
}
public ref vec2d this[int index]
{
get => ref _texCoord[index];
}
}
}