public static int cppLoadSubstance(string pAssetPath, IntPtr array, Int32 size, IntPtr assetCtx, IntPtr substanceObject, UInt32[] graphIndices, string[] graphPrototypeNames, string[] graphLabels, int[] graphFormats, int[] normalFormats, UInt32 numGraphIndices, int rawOverride, int projectContext) { string myName = System.Reflection.MethodBase.GetCurrentMethod().Name; if (DLLHelpers.DllHandle == IntPtr.Zero) { return(0); } cppLoadSubstanceDelegate function = DLLHelpers.GetFunction( myName, typeof(cppLoadSubstanceDelegate)) as cppLoadSubstanceDelegate; return((int)function.Invoke(pAssetPath, array, size, assetCtx, substanceObject, graphIndices, graphPrototypeNames, graphLabels, graphFormats, normalFormats, numGraphIndices, rawOverride, projectContext)); }
public static void cppModifyTexturePacking(IntPtr graphHandle, string pSourceNames, int[] pSourceComponents, string pTargetName, int[] pTargetComponents, int pNumComponents) { string myName = System.Reflection.MethodBase.GetCurrentMethod().Name; if (DLLHelpers.DllHandle == IntPtr.Zero) { return; } cppModifyTexturePackingDelegate function = DLLHelpers.GetFunction( myName, typeof(cppModifyTexturePackingDelegate)) as cppModifyTexturePackingDelegate; function.Invoke(graphHandle, pSourceNames, pSourceComponents, pTargetName, pTargetComponents, pNumComponents); }