public void InitNew(int width, int height, ImageDataFORMAT format) { int[] arg = { width, height, (int)format }; fixed(int *ptr = arg) { IntPtr retval = IntPtr.Zero; GameEngine.InvokeMemberFn(m_instanceId, "CreateNew", (IntPtr)ptr, out retval); } RefreshCachedProperties(); }
public void Convert(ImageDataFORMAT format) { GameEngine.SetObjectProperty(TypeId, m_instanceId, ConvertId, (uint)format); RefreshCachedProperties(); }
public void InitNew(int width, int height, ImageDataFORMAT format) { int[] arg = { width, height, (int)format }; fixed (int* ptr = arg) { IntPtr retval = IntPtr.Zero; GameEngine.InvokeMemberFn(m_instanceId, "CreateNew", (IntPtr)ptr, out retval); } RefreshCachedProperties(); }
public void Convert(ImageDataFORMAT format) { GameEngine.SetObjectProperty(TypeId, m_instanceId, ConvertId, (uint)format); RefreshCachedProperties(); }