本文整理汇总了C#中HAPI_Session类的典型用法代码示例。如果您正苦于以下问题:C# HAPI_Session类的具体用法?C# HAPI_Session怎么用?C# HAPI_Session使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HAPI_Session类属于命名空间,在下文中一共展示了HAPI_Session类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getSession
private static bool getSession( out HAPI_Session session, string pipe_name )
{
#if ( UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || ( UNITY_METRO && UNITY_EDITOR ) )
HAPI_Result status_code = HAPI_CreateThriftNamedPipeSession( out session, prPipeName );
if ( status_code != HAPI_Result.HAPI_RESULT_SUCCESS )
{
prLastInitializationError =
"Could not create the RPC pipe session.\n" +
"Make sure " + prServerExecutablePath + " exists.";
return false;
}
prSessionID = session.id;
#else
session.id = 0;
session.type = HAPI_SessionType.HAPI_SESSION_INPROCESS;
#endif // UNITY_EDITOR
return true;
}
示例2: HAPI_SetPartInfo
HAPI_SetPartInfo(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_ObjectId object_id, HAPI_GeoId geo_id,
ref HAPI_PartInfo part_info );
示例3: HAPI_GetImageMemoryBuffer
HAPI_GetImageMemoryBuffer(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_MaterialId material_id,
[Out] byte[] buffer,
int length );
示例4: HAPI_ExtractImageToFile
HAPI_ExtractImageToFile(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_MaterialId material_id,
string image_file_format_name,
string image_planes,
string destination_folder_path,
string destination_file_name,
out int destination_file_path );
示例5: HAPI_GetImagePlaneCount
HAPI_GetImagePlaneCount(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_MaterialId material_id,
out int image_plane_count );
示例6: HAPI_GetSupportedImageFileFormats
HAPI_GetSupportedImageFileFormats(
ref HAPI_Session session,
[Out] HAPI_ImageFileFormat[] formats_array,
int file_format_count );
示例7: HAPI_RenderTextureToImage
HAPI_RenderTextureToImage(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_MaterialId material_id,
HAPI_ParmId parm_id );
示例8: HAPI_GetMaterialOnPart
HAPI_GetMaterialOnPart(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_ObjectId object_id, HAPI_GeoId geo_id, HAPI_PartId part_id,
out HAPI_MaterialInfo material_info );
示例9: HAPI_SetGroupMembership
HAPI_SetGroupMembership(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_ObjectId object_id, HAPI_GeoId geo_id,
HAPI_GroupType group_type,
string group_name,
[Out] int[] membership_array,
int start, int length );
示例10: HAPI_AddGroup
HAPI_AddGroup(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_ObjectId object_id, HAPI_GeoId geo_id,
HAPI_GroupType group_type,
string group_name );
示例11: HAPI_SetAttributeStringData
HAPI_SetAttributeStringData(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_ObjectId object_id, HAPI_GeoId geo_id,
string name,
ref HAPI_AttributeInfo attr_info,
string[] data_array,
int start, int length );
示例12: HAPI_AddAttribute
HAPI_AddAttribute(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_ObjectId object_id, HAPI_GeoId geo_id,
string name,
ref HAPI_AttributeInfo attr_info );
示例13: HAPI_SetVertexList
HAPI_SetVertexList(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_ObjectId object_id, HAPI_GeoId geo_id,
int[] vertex_list_array,
int start, int length );
示例14: HAPI_CloseSession
HAPI_CloseSession( ref HAPI_Session session );
示例15: HAPI_SetFaceCounts
HAPI_SetFaceCounts(
ref HAPI_Session session,
HAPI_AssetId asset_id, HAPI_ObjectId object_id, HAPI_GeoId geo_id,
int[] face_counts_array,
int start, int length );