BOLTStack.XLGraphics.XLGP_InitGraphicPlus C# (CSharp) Method

XLGP_InitGraphicPlus() private method

private XLGP_InitGraphicPlus ( IntPtr theParam ) : long
theParam System.IntPtr
return long
        public static extern long XLGP_InitGraphicPlus(IntPtr theParam);

Usage Example

Example #1
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);
        }