コード例 #1
0
            internal static _SetLightColor SetLightColor()
            {
                if (_SetLightColorFunc == null)
                {
                    _SetLightColorFunc =
                        (_SetLightColor)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnGuiMaterialPreview_setLightColor"), typeof(_SetLightColor));
                }

                return(_SetLightColorFunc);
            }
コード例 #2
0
            internal static _SetLightColor SetLightColor()
            {
                if (_SetLightColorFunc == null)
                {
                    _SetLightColorFunc =
                        (_SetLightColor)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnGuiMaterialPreview_setLightColor"), typeof(_SetLightColor));
                }

                return(_SetLightColorFunc);
            }