标签:marker int add erer bsp port imp nbsp end
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);
}
最后在把触发旧方法改成新方法即可
标签:marker int add erer bsp port imp nbsp end
原文地址:http://www.cnblogs.com/joson/p/6602885.html