using System.Runtime.InteropServices;
using OpenTK.Graphics.OpenGL;

namespace Engine.Graphics.Pixel;

[StructLayout(LayoutKind.Sequential)]
public struct Rgb8 : IPixel
{
  public PixelFormat Format => PixelFormat.Rgb;
  public PixelType Type => PixelType.UnsignedByte;

  public PixelInternalFormat InternalFormat => PixelInternalFormat.Rgb8;
  public SizedInternalFormat SizedInternalFormat => SizedInternalFormat.Rgb8;

  public byte R;
  public byte G;
  public byte B;

  public override string ToString() => $"{R}, {G}, {B}";
}