|
|
@@ -8,7 +8,7 @@ use map_view::MapView;
|
|
8
|
8
|
use program::Program;
|
|
9
|
9
|
use texture::{Texture, TextureFormat};
|
|
10
|
10
|
use tile_cache::TileCache;
|
|
11
|
|
-use tile_cache_gl::TileCacheGl;
|
|
|
11
|
+use tile_atlas::TileAtlas;
|
|
12
|
12
|
use tile_source::TileSource;
|
|
13
|
13
|
|
|
14
|
14
|
|
|
|
@@ -20,7 +20,7 @@ pub struct MapViewGl<'a> {
|
|
20
|
20
|
viewport_size: (u32, u32),
|
|
21
|
21
|
map_view: MapView,
|
|
22
|
22
|
tile_cache: TileCache,
|
|
23
|
|
- tile_cache_gl: TileCacheGl<'a>,
|
|
|
23
|
+ tile_atlas: TileAtlas<'a>,
|
|
24
|
24
|
}
|
|
25
|
25
|
|
|
26
|
26
|
impl<'a> MapViewGl<'a> {
|
|
|
@@ -72,7 +72,7 @@ impl<'a> MapViewGl<'a> {
|
|
72
|
72
|
viewport_size: initial_size,
|
|
73
|
73
|
map_view: map_view,
|
|
74
|
74
|
tile_cache: TileCache::new(move |_tile| update_func(), use_network),
|
|
75
|
|
- tile_cache_gl: TileCacheGl::new(tex, 256),
|
|
|
75
|
+ tile_atlas: TileAtlas::new(tex, 256),
|
|
76
|
76
|
}
|
|
77
|
77
|
}
|
|
78
|
78
|
}
|
|
|
@@ -105,7 +105,7 @@ impl<'a> MapViewGl<'a> {
|
|
105
|
105
|
|
|
106
|
106
|
loop {
|
|
107
|
107
|
let (textured_visible_tiles, remainder_opt, used_tiles) = {
|
|
108
|
|
- self.tile_cache_gl.textured_visible_tiles(
|
|
|
108
|
+ self.tile_atlas.textured_visible_tiles(
|
|
109
|
109
|
remainder,
|
|
110
|
110
|
max_tiles_to_use,
|
|
111
|
111
|
source,
|