Пример #1
0
        public static void SetBoneDimensions(int avatarIndex, BoneDimension dimsBuffer)
        {
            int    size   = Marshal.SizeOf(typeof(BoneDimension));
            IntPtr buffer = Marshal.AllocHGlobal(size);

            Marshal.StructureToPtr(dimsBuffer, buffer, true);
            PNSetBoneDimensions(avatarIndex, buffer);
            Marshal.FreeHGlobal(buffer);
        }
Пример #2
0
 public static extern void PNGetBoneDimensions(int avatarIndex, ref BoneDimension dimsBuffer);