Example #1
0
 private static extern void SetImportPropertyString(IntPtr propertyStore, [InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] String name, ref AiString value);
Example #2
0
 private static extern ReturnCode aiGetMaterialTexture(ref AiMaterial mat, TextureType type, uint index, out AiString path, out TextureMapping mapping, out uint uvIndex, out float blendFactor, out TextureOperation textureOp, out TextureWrapMode wrapMode, out uint flags);
Example #3
0
 private static extern ReturnCode aiGetMaterialString(ref AiMaterial mat, [InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] String key, uint texType, uint texIndex, out AiString str);
Example #4
0
 private static extern void aiGetExtensionList(ref AiString extensionsOut);
Example #5
0
 /// <summary>
 /// Sets a string property value.
 /// </summary>
 /// <param name="propertyStore">Pointer to property store</param>
 /// <param name="name">Property name</param>
 /// <param name="value">Property value</param>
 public static void SetImportPropertyString(IntPtr propertyStore, String name, String value)
 {
     AiString str = new AiString();
     if(str.SetString(value))
         SetImportPropertyString(propertyStore, name, ref str);
 }
Example #6
0
 /// <summary>
 /// Gets all the model format extensions that are currently supported by Assimp.
 /// </summary>
 /// <returns>Array of supported format extensions</returns>
 public static String[] GetExtensionList()
 {
     AiString aiString = new AiString();
     aiGetExtensionList(ref aiString);
     return aiString.GetString().Split(new String[] { "*", ";*" }, StringSplitOptions.RemoveEmptyEntries);
 }