mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:17:22 +01:00
add spaghetti
This commit is contained in:
parent
a446b78834
commit
b6b00f21e2
10 changed files with 950 additions and 1 deletions
30
MareSynchronos/Interop/Material.cs
Normal file
30
MareSynchronos/Interop/Material.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
using System.Runtime.InteropServices;
|
||||
using FFXIVClientStructs.FFXIV.Client.Graphics.Render;
|
||||
|
||||
namespace Penumbra.Interop.Structs;
|
||||
|
||||
[StructLayout( LayoutKind.Explicit )]
|
||||
public unsafe struct Material
|
||||
{
|
||||
[FieldOffset( 0x10 )]
|
||||
public ResourceHandle* ResourceHandle;
|
||||
|
||||
[FieldOffset( 0x28 )]
|
||||
public MaterialData* MaterialData;
|
||||
|
||||
[FieldOffset( 0x48 )]
|
||||
public Texture* Tex1;
|
||||
|
||||
[FieldOffset( 0x60 )]
|
||||
public Texture* Tex2;
|
||||
|
||||
[FieldOffset( 0x78 )]
|
||||
public Texture* Tex3;
|
||||
}
|
||||
|
||||
[StructLayout( LayoutKind.Explicit )]
|
||||
public unsafe struct MaterialData
|
||||
{
|
||||
[FieldOffset( 0x0 )]
|
||||
public byte* Data;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue