首页 > 其他 > 详细

插件之间的融合

时间:2017-03-23 02:19:21      阅读:188      评论:0      收藏:0      [点我收藏+]

MMT与高通直接的融合

在VuforiaNativeRendererController.mm中修改

///import MMT head file

#import <UIKit/UIKit.h>

/// Add original MMT function

extern "C" void MMTUnitySetGraphicsDevice(void* device, int deviceType, int eventType);

extern "C" void MMTUnityRenderEvent(int marker);

 

///merge two function

extern "C" void VuforiaSetGraphicsDeviceMerges(void* device, int deviceType, int eventType)

{

    VuforiaSetGraphicsDevice(device,deviceType,eventType);

    MMTUnitySetGraphicsDevice(device,deviceType,eventType);

}

 

extern "C" void VuforiaRenderEventMerges(int marker)

{

    VuforiaRenderEvent(marker);

    MMTUnityRenderEvent(marker);

}

 最后在把触发旧方法改成新方法即可

插件之间的融合

原文:http://www.cnblogs.com/joson/p/6602885.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!