]> Pileus Git - grits/blob - TODO
b1a167eeb519c6d577461cbe9b12b329b295cc3d
[grits] / TODO
1 Road plan
2 ---------
3 * Use Vertex Arrays/
4   VertexBufferObjects/
5   DisplayLists/
6   glInterleavedArrays
7 * States/cities/roads overlays
8
9 Roam update
10 -----------
11
12   x # Gis:
13   x gis_update_tiles(tiles);
14   x   for (tile in tiles)
15   x     if (need_split(tiles))
16   x       tiles << split(tile)
17   x gis_render_surface(Image *img)
18   x   polys = roam_get_intersecting_polies(img)
19   x   for (poly in plies)
20   x     render(img, poly)
21
22     # Roam:
23     on_view_change:
24       roam_update_errors(roam)
25     on_timeout:
26       split_merge:
27         if (height_func())
28            vertex_heght = roam->height_func()
29         else
30            vertex_heght = 0
31
32   x # GisPluginSrtm:
33   x on_view_change:
34   x   roam->height_func = srtm_height_func
35   x   gis_update_tiles(tiles)
36   x   for (new_tiles in tiles)
37   x     points = roam_get_intersecting_points(tile)
38   x     for (poly in plies)
39   x       render(img, poly)
40
41   x # GisPluginBmng:
42   x on_view_change:
43   x   gis_update_tiles(tiles)
44   x on_render:
45   x   for tile in tiles:
46   x     gis_render_surface(gis, tile)