internal static RenderingCache *Create(int width, int height, float FOV = 90f) { RenderingCache *result = (RenderingCache *)Marshal.AllocHGlobal(sizeof(RenderingCache)); *result = new RenderingCache(width, height, FOV); return(result); }
internal static void Delete(RenderingCache *cache) { cache->Dispose(); Marshal.FreeHGlobal((IntPtr)cache); }