Exemple #1
0
        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);
        }
Exemple #2
0
 internal static void Delete(RenderingCache *cache)
 {
     cache->Dispose();
     Marshal.FreeHGlobal((IntPtr)cache);
 }