예제 #1
0
            internal static _CompileShader CompileShader()
            {
                if (_CompileShaderFunc == null)
                {
                    _CompileShaderFunc =
                        (_CompileShader)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnMaterialAsset_compileShader"), typeof(_CompileShader));
                }

                return(_CompileShaderFunc);
            }
예제 #2
0
            internal static _CompileShader CompileShader()
            {
                if (_CompileShaderFunc == null)
                {
                    _CompileShaderFunc =
                        (_CompileShader)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnMaterialAsset_compileShader"), typeof(_CompileShader));
                }

                return(_CompileShaderFunc);
            }