Johannes Hofmann
3ffbe5011c
search_pbf: Update closure can change control flow
hace 7 años
Johannes Hofmann
ea610bdeaa
travis: Add Rust beta channel
hace 7 años
Johannes Hofmann
5f47684dc4
Extract code into marker_layer module
hace 7 años
Johannes Hofmann
b12e7885ed
Add search module
hace 7 años
Johannes Hofmann
2f5db2e7ad
Fix marker visibility calculation
hace 7 años
Johannes Hofmann
bea18cc290
Add some jobs to .appveyor.yml
hace 7 años
Johannes Hofmann
f478fc1e07
Search Nodes in addition to DenseNodes
hace 7 años
Johannes Hofmann
0f30790da8
Search PBF files and display matches as markers
Use the parameters -s and --pbf for this.
hace 7 años
Johannes Hofmann
c430500e69
Support drawing markers
hace 7 años
Johannes Hofmann
5891c0de46
Cache enabled vertex attributes, store params
* Cache the enabled vertex attributes in `Context`
* The vertex attribute parameters (offset, stride, ...) are not cached,
yet
* Store parameters as `VertexAttribParams` in `Program`
hace 7 años
Johannes Hofmann
43ecb10350
context: Cache active buffer
This reduces calls to glUseBuffer.
hace 7 años
Johannes Hofmann
4962639d01
context: Cache active program
This would reduce the calls to glUseProgram if there actually was more
than one program.
hace 7 años
Johannes Hofmann
c7f1518897
Cache active texture unit, assign unit to texture
Each Texture is bound to a unique texture unit (glBindTexture is called
only once). Context keeps track of the current active texture unit and
reduces the number of glActiveTexture calls to a minimum.
hace 7 años
Johannes Hofmann
d52ac36ff6
Fix clippy warning
hace 7 años
Johannes Hofmann
38d1cf35e5
Restructure OpenGL context sharing
Program, Buffer, Texture... structs no longer store a reference to a
Context. Now it has to be passed explicitly to all methods that mutate
the OpenGL state. This enables caching the state and removing redundant
calls to gl* functions.
hace 7 años
Johannes Hofmann
78bcd3a363
config: Improve logging
hace 7 años
Johannes Hofmann
a215b897bb
main: Simplify event handling
and only call glViewport once per frame when resizing.
hace 7 años
Johannes Hofmann
43e33e7072
Use directories crate instead of xdg
This should improve platform independence.
hace 7 años
Johannes Hofmann
18111f53e8
map_view: Fix zoom calculation for pixel snapping
hace 7 años
Johannes Hofmann
5f0777c521
url_template: Small doc fixes
hace 7 años
Johannes Hofmann
02f1f9c9d6
Add .appveyor.yml
hace 7 años
Johannes Hofmann
19e28a35d8
Don't call glClear when map fills the whole screen
hace 7 años
Johannes Hofmann
d2da35fd1c
Only snap to pixel grid if zoom has integral value
hace 7 años
Johannes Hofmann
639c9f945f
Add module url_template
hace 7 años
Johannes Hofmann
b26ef4c333
Use Display trait for more readable error messages
hace 7 años
Johannes Hofmann
abb562f412
map_view_gl: Specify min and max zoom level
hace 7 años
Johannes Hofmann
ff177a2d40
Advance in integer zoom levels with step zoom
hace 7 años
Johannes Hofmann
fcbad65155
Fix clippy warnings
hace 7 años
Johannes Hofmann
fb8dc48b3b
travis: Pin Rust 1.24 as minimum supported version
hace 7 años
Johannes Hofmann
f5bef94f35
Update glutin (to 0.16) and other dependencies
hace 7 años
Johannes Hofmann
56ad75b327
Update glutin (to 0.15), image (to 0.19) & others
hace 7 años
Johannes Hofmann
8eb2c1c3c2
Move tile sources configuration to separate file
hace 7 años
Johannes Hofmann
fbdabc2c72
Update glutin (to 0.14) and other dependencies
hace 7 años
Johannes Hofmann
ebd1439bc0
Update glutin (to 0.13) and other dependencies
hace 7 años
Johannes Hofmann
201e63197c
Merge command line arguments and `Config`
hace 7 años
Johannes Hofmann
e4e11e76cd
Move glClear call out of the critical path
hace 7 años
Johannes Hofmann
9c4535e568
Move clap to new module: args.rs
hace 7 años
Johannes Hofmann
a6c0ea8561
Use Display trait for printing errors
...instead of using the `description` method.
hace 7 años
Johannes Hofmann
980ce573f1
Document map_view.rs
hace 7 años
Johannes Hofmann
5f2d077f41
Switch from servo-glutin to glutin, update dependencies
hace 7 años
Johannes Hofmann
d0507bb8fb
Reduce compile times: use image::load_from_memory without format
hace 7 años
Johannes Hofmann
098ebc582a
Include resources with include_bytes! macro
hace 7 años
Johannes Hofmann
a7db860456
Improve error handling with OpenGL functions
hace 7 años
Johannes Hofmann
cfda9c21aa
Use Ctrl to switch to scrolling on mouse wheel events
hace 7 años
Johannes Hofmann
430604574f
Remove unnecessary variant from RemoteLoaderMessage
hace 7 años
Johannes Hofmann
d2f295ce4b
Show modules in docs, fix doc warnings
hace 7 años
Johannes Hofmann
3d69b061b1
Disable linting for generated files
hace 7 años
Johannes Hofmann
5d67d3bef5
Add --sync option
hace 7 años
Johannes Hofmann
100562fdc1
Add member min_zoom to TileSource
hace 7 años
Johannes Hofmann
86d28b14fa
Ensure that the initial atlas size is <= MAX_TEXTURE_SIZE
hace 8 años