Example #1
0
        new public static GFX_MODE_LIST get_gfx_mode_list(int card)
        {
            IntPtr        p   = AllegroAPI.get_gfx_mode_list(card);
            GFX_MODE_LIST ret = (GFX_MODE_LIST)Marshal.PtrToStructure(p, typeof(GFX_MODE_LIST));

            // Saves the original unmanaged memory address
            ret.p = p;
            return(ret);
        }
Example #2
0
 public static void destroy_gfx_mode_list(GFX_MODE_LIST mode_list)
 {
     // Frees the memory allocated by allegro, the GC should take care of managed memory
     AllegroAPI.destroy_gfx_mode_list(mode_list.p);
 }