This commit is contained in:
2024-12-04 22:35:04 +03:00
commit 3f1740f41f
43 changed files with 1757 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using Engine.Renderer.Pixel;
using OpenTK.Graphics.OpenGL;
namespace Engine.Renderer.Texture;
public class StaticTexture<T> : Texture<T> where T : struct, IPixel
{
public StaticTexture(int width, int height) : base(width, height)
{
var format = default(T).SizedInternalFormat;
GL.TextureStorage2D(Handle, 1, format, Width, Height);
}
}