private static void *__CopyValue(global::SharpSDL.IDirect3DDevice9.__Internal native) { var ret = Marshal.AllocHGlobal(sizeof(global::SharpSDL.IDirect3DDevice9.__Internal)); *(global::SharpSDL.IDirect3DDevice9.__Internal *)ret = native; return(ret.ToPointer()); }
private IDirect3DDevice9(global::SharpSDL.IDirect3DDevice9.__Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
internal static global::SharpSDL.IDirect3DDevice9 __CreateInstance(global::SharpSDL.IDirect3DDevice9.__Internal native, bool skipVTables = false) { return(new global::SharpSDL.IDirect3DDevice9(native, skipVTables)); }