shenjianxing 6b341ae2b4 适配VR
2025-04-01 16:16:45 +08:00

56 lines
1.6 KiB
C#

////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2007-2020 , Inc. All Rights Reserved.
//
////////////////////////////////////////////////////////////////////////////////
using System;
namespace GCSeries.Core.Sdk
{
public class ZNativeResource : IDisposable
{
public ZNativeResource()
{
}
public ZNativeResource(IntPtr nativePtr)
{
this._nativePtr = nativePtr;
}
////////////////////////////////////////////////////////////////////////
// Public Properties
////////////////////////////////////////////////////////////////////////
/// <summary>
/// The native pointer of the resource.
/// </summary>
public IntPtr NativePtr => this._nativePtr;
////////////////////////////////////////////////////////////////////////
// Public Methods
////////////////////////////////////////////////////////////////////////
public void Dispose()
{
this.Dispose(true);
GC.SuppressFinalize(this);
}
////////////////////////////////////////////////////////////////////////
// Protected Methods
////////////////////////////////////////////////////////////////////////
protected virtual void Dispose(bool disposing)
{
}
////////////////////////////////////////////////////////////////////////
// Protected Members
////////////////////////////////////////////////////////////////////////
protected IntPtr _nativePtr = IntPtr.Zero;
}
}