public static IntPtr GetBitmap(this IntPtr L, int index)
        {
            IntPtr bitmap = IntPtr.Zero;

            XLGraphics.XLGP_CheckBitmap(L, index, ref bitmap);
            return(bitmap);
        }
Exemple #2
0
        private static void Initialization(bool initXGP = false)
        {
            XLUE.XL_InitGraphicLib(0);
            XLUE.XL_SetFreeTypeEnabled(1);

            XLUE.XLUE_InitLoader(0);
            if (!initXGP)
            {
                return;
            }

            var size   = Marshal.SizeOf(typeof(XLGraphics.tagXLGraphicPlusParam));
            var ptr    = Marshal.AllocHGlobal(size);
            var strcut = new XLGraphics.tagXLGraphicPlusParam
            {
                bInitLua = true
            };

            Marshal.StructureToPtr(strcut, ptr, false);
            XLGraphics.XLGP_InitGraphicPlus(ptr);
        }
 public static void PushBitmap(this IntPtr L, IntPtr handle)
 {
     XLGraphics.XLGP_PushBitmap(L, handle);
 }