This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
chovy-gm/GMAC1098/GMAssetCompiler.Machines/PSP.cs

112 lines
1.2 KiB
C#

namespace GMAssetCompiler.Machines
{
internal class PSP : IMachineType
{
public string Name
{
get
{
return "PSP";
}
}
public string Description
{
get
{
return "Sony PSP Minis";
}
}
public eOutputType OutputType
{
get
{
return eOutputType.eWAD;
}
}
public string Extension
{
get
{
return ".psp";
}
}
public int TPageWidth
{
get
{
return 512;
}
}
public int TPageHeight
{
get
{
return 512;
}
}
public int TPageBorderTop
{
get
{
return 0;
}
}
public int TPageBorderBottom
{
get
{
return 0;
}
}
public int TPageBorderLeft
{
get
{
return 0;
}
}
public int TPageBorderRight
{
get
{
return 0;
}
}
public eTexType OpaqueTextureType
{
get
{
return eTexType.eDXT;
}
}
public eTexType AlphaTextureType
{
get
{
return eTexType.eDXT;
}
}
public ushort Convert4444(int _a, int _r, int _g, int _b)
{
return (ushort)(((_a & 0xF0) << 8) | ((_r & 0xF0) << 4) | (_g & 0xF0) | ((_b & 0xF0) >> 4));
}
public uint Convert8888(int _a, int _r, int _g, int _b)
{
return (uint)((_a << 24) | (_r << 16) | (_g << 8) | _b);
}
}
}