当前位置: 首页>>代码示例>>Java>>正文


Java Vuforia.onSurfaceCreated方法代码示例

本文整理汇总了Java中com.vuforia.Vuforia.onSurfaceCreated方法的典型用法代码示例。如果您正苦于以下问题:Java Vuforia.onSurfaceCreated方法的具体用法?Java Vuforia.onSurfaceCreated怎么用?Java Vuforia.onSurfaceCreated使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vuforia.Vuforia的用法示例。


在下文中一共展示了Vuforia.onSurfaceCreated方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onSurfaceCreated

import com.vuforia.Vuforia; //导入方法依赖的package包/类
public void onSurfaceCreated()
{
    Vuforia.onSurfaceCreated();
}
 
开发者ID:daemontus,项目名称:VuforiaLibGDX,代码行数:5,代码来源:AppSession.java

示例2: onSurfaceCreated

import com.vuforia.Vuforia; //导入方法依赖的package包/类
public void onSurfaceCreated(GL10 gl, EGLConfig config)
{
    // Call function to initialize rendering:
    // The video texture is also created on this step
    initRendering();
    
    // Call Vuforia function to (re)initialize rendering after first use
    // or after OpenGL ES context was lost (e.g. after onPause/onResume):
    Vuforia.onSurfaceCreated();
    
    for (int i = 0; i < VideoPlayback.NUM_TARGETS; i++)
    {
        
        if (mVideoPlayerHelper[i] != null)
        {
            // The VideoPlayerHelper needs to setup a surface texture given
            // the texture id
            // Here we inform the video player that we would like to play
            // the movie
            // both on texture and on full screen
            // Notice that this does not mean that the platform will be able
            // to do what we request
            // After the file has been loaded one must always check with
            // isPlayableOnTexture() whether
            // this can be played embedded in the AR scene
            if (!mVideoPlayerHelper[i]
                .setupSurfaceTexture(videoPlaybackTextureID[i]))
                mCanRequestType[i] = MEDIA_TYPE.FULLSCREEN;
            else
                mCanRequestType[i] = MEDIA_TYPE.ON_TEXTURE_FULLSCREEN;
            
            // And now check if a load has been requested with the
            // parameters passed from the main activity
            if (mLoadRequested[i])
            {
                mVideoPlayerHelper[i].load(mMovieName[i],
                    mCanRequestType[i], mShouldPlayImmediately[i],
                    mSeekPosition[i]);
                mLoadRequested[i] = false;
            }
        }
    }
}
 
开发者ID:daemontus,项目名称:VuforiaTransparentVideo,代码行数:44,代码来源:VideoPlaybackRenderer.java


注:本文中的com.vuforia.Vuforia.onSurfaceCreated方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。