Move RGBA image contract to model

This commit is contained in:
gamer147
2026-08-03 10:46:28 -04:00
parent 94f59ddc3c
commit a584b734b3
24 changed files with 30 additions and 17 deletions

View File

@@ -1,5 +1,4 @@
using Age.Engine.Model;
using Age.Engine.Sys4;
namespace Age.Engine.Hosting;

View File

@@ -0,0 +1,4 @@
namespace Age.Engine.Model;
/// <summary>A decoded, tightly packed, top-down RGBA8 image.</summary>
public sealed record RgbaImage(int Width, int Height, byte[] Pixels);

View File

@@ -1,5 +1,5 @@
using System.Buffers.Binary;
using Age.Engine.Sys4;
using Age.Engine.Model;
namespace Age.Engine.Persistence;

View File

@@ -1,10 +1,8 @@
using System.Buffers.Binary;
using Age.Engine.Model;
namespace Age.Engine.Sys4;
/// <summary>A decoded, tightly packed, top-down RGBA8 image.</summary>
public sealed record RgbaImage(int Width, int Height, byte[] Pixels);
/// <summary>
/// Platform-neutral Eushully AGF decoder. Format algorithm ported from GARbro's MIT-licensed
/// ArcFormats/Eushully/ImageAGF.cs (Copyright (C) 2015 morkt).

View File

@@ -1,4 +1,5 @@
using System.Buffers.Binary;
using Age.Engine.Model;
namespace Age.Engine.Sys4;

View File

@@ -1,3 +1,5 @@
using Age.Engine.Model;
namespace Age.Engine.Sys4;
/// <summary>

View File

@@ -1,3 +1,5 @@
using Age.Engine.Model;
namespace Age.Engine.Sys4;
/// <summary>Platform-neutral mutation helpers for AGE's software-modeled RGBA surfaces.</summary>

View File

@@ -1,5 +1,4 @@
using Age.Engine.Model;
using Age.Engine.Sys4;
namespace Age.Engine.Text;

View File

@@ -1,6 +1,5 @@
using System.Text;
using Age.Engine.Model;
using Age.Engine.Sys4;
namespace Age.Engine.Text;

View File

@@ -1,5 +1,4 @@
using Age.Engine.Model;
using Age.Engine.Sys4;
namespace Age.Engine.Text;