2013-09-30 45 views

回答

1

首先仔細閱讀圖片和視頻播放都vuforia SDK教程。 根據您的功能打開Imagetarget.cpp並更新指令Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame() 。 在這裏您可以添加視頻播放代碼。 更改此功能:

JNIEXPORT void JNICALL 
Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame(JNIEnv *, jobject) 
{ 
    //LOG("Java_com_qualcomm_QCARSamples_ImageTargets_GLRenderer_renderFrame");// Clear color and depth buffer 
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
    enter code here 
    // Get the state from QCAR and mark the beginning of a rendering section 
    QCAR::State state = QCAR::Renderer::getInstance().begin(); 

    // Explicitly render the Video Background 
    QCAR::Renderer::getInstance().drawVideoBackground(); 

    #ifdef USE_OPENGL_ES_1_1en`enter code here`ter code here` 
    // Set GL11 flags:`enter code here` 

} 
+0

這是不清楚的解釋,你能解釋我更多..? – brutush

相關問題