daily update on 20240528 by nitload youmu
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user