public static GVRTexture loadFutureCubemapTexture ( GVRContext gvrContext , ResourceCache < GVRImage > textureCache , GVRAndroidResource resource , int priority , Map < String , Integer > faceIndexMap ) { GVRTexture tex = new GVRTexture ( gvrContext ) ; GVRImage cached = textureCache . get ( resource ) ; if ( cached != null ) { Log . v ( "ASSET" , "Future Texture: %s loaded from cache" , cached . getFileName ( ) ) ; tex . setImage ( cached ) ; } else { AsyncCubemapTexture . get ( ) . loadTexture ( gvrContext , CancelableCallbackWrapper . wrap ( GVRCubemapImage . class , tex ) , resource , priority , faceIndexMap ) ; } return tex ; }
Load a cube map texture asynchronously .