Johannes Hofmann
43ecb10350
context: Cache active buffer
This reduces calls to glUseBuffer.
il y a 7 ans
Johannes Hofmann
4962639d01
context: Cache active program
This would reduce the calls to glUseProgram if there actually was more
than one program.
il y a 7 ans
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.
il y a 7 ans
Johannes Hofmann
d52ac36ff6
Fix clippy warning
il y a 7 ans
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.
il y a 7 ans
Johannes Hofmann
78bcd3a363
config: Improve logging
il y a 7 ans
Johannes Hofmann
a215b897bb
main: Simplify event handling
and only call glViewport once per frame when resizing.
il y a 7 ans
Johannes Hofmann
43e33e7072
Use directories crate instead of xdg
This should improve platform independence.
il y a 7 ans
Johannes Hofmann
18111f53e8
map_view: Fix zoom calculation for pixel snapping
il y a 7 ans
Johannes Hofmann
5f0777c521
url_template: Small doc fixes
il y a 7 ans
Johannes Hofmann
02f1f9c9d6
Add .appveyor.yml
il y a 7 ans
Johannes Hofmann
19e28a35d8
Don't call glClear when map fills the whole screen
il y a 7 ans
Johannes Hofmann
d2da35fd1c
Only snap to pixel grid if zoom has integral value
il y a 7 ans
Johannes Hofmann
639c9f945f
Add module url_template
il y a 7 ans
Johannes Hofmann
b26ef4c333
Use Display trait for more readable error messages
il y a 7 ans
Johannes Hofmann
abb562f412
map_view_gl: Specify min and max zoom level
il y a 7 ans
Johannes Hofmann
ff177a2d40
Advance in integer zoom levels with step zoom
il y a 7 ans
Johannes Hofmann
fcbad65155
Fix clippy warnings
il y a 7 ans
Johannes Hofmann
fb8dc48b3b
travis: Pin Rust 1.24 as minimum supported version
il y a 7 ans
Johannes Hofmann
f5bef94f35
Update glutin (to 0.16) and other dependencies
il y a 7 ans
Johannes Hofmann
56ad75b327
Update glutin (to 0.15), image (to 0.19) & others
il y a 7 ans
Johannes Hofmann
8eb2c1c3c2
Move tile sources configuration to separate file
il y a 7 ans
Johannes Hofmann
fbdabc2c72
Update glutin (to 0.14) and other dependencies
il y a 7 ans
Johannes Hofmann
ebd1439bc0
Update glutin (to 0.13) and other dependencies
il y a 7 ans
Johannes Hofmann
201e63197c
Merge command line arguments and `Config`
il y a 7 ans
Johannes Hofmann
e4e11e76cd
Move glClear call out of the critical path
il y a 7 ans
Johannes Hofmann
9c4535e568
Move clap to new module: args.rs
il y a 7 ans
Johannes Hofmann
a6c0ea8561
Use Display trait for printing errors
...instead of using the `description` method.
il y a 7 ans
Johannes Hofmann
980ce573f1
Document map_view.rs
il y a 7 ans
Johannes Hofmann
5f2d077f41
Switch from servo-glutin to glutin, update dependencies
il y a 7 ans
Johannes Hofmann
d0507bb8fb
Reduce compile times: use image::load_from_memory without format
il y a 7 ans
Johannes Hofmann
098ebc582a
Include resources with include_bytes! macro
il y a 7 ans
Johannes Hofmann
a7db860456
Improve error handling with OpenGL functions
il y a 7 ans
Johannes Hofmann
cfda9c21aa
Use Ctrl to switch to scrolling on mouse wheel events
il y a 7 ans
Johannes Hofmann
430604574f
Remove unnecessary variant from RemoteLoaderMessage
il y a 7 ans
Johannes Hofmann
d2f295ce4b
Show modules in docs, fix doc warnings
il y a 7 ans
Johannes Hofmann
3d69b061b1
Disable linting for generated files
il y a 7 ans
Johannes Hofmann
5d67d3bef5
Add --sync option
il y a 7 ans
Johannes Hofmann
100562fdc1
Add member min_zoom to TileSource
il y a 7 ans
Johannes Hofmann
86d28b14fa
Ensure that the initial atlas size is <= MAX_TEXTURE_SIZE
il y a 8 ans
Johannes Hofmann
7a1d847cf4
Fix some clippy warnings, update dependencies
il y a 8 ans
Johannes Hofmann
24ef61939c
Increase tile atlas size when needed
il y a 8 ans
Johannes Hofmann
1abbe6393d
Rename tile_cache_gl -> tile_atlas
il y a 8 ans
Johannes Hofmann
489df246d4
Draw in multiple steps when texture atlas is too small
il y a 8 ans
Johannes Hofmann
a91637ade6
Rename render_zoom_level -> tile_zoom
il y a 8 ans
Johannes Hofmann
b7988fd29f
Allow changing render zoom level
il y a 8 ans
Johannes Hofmann
2cbc675050
Overestimate draw duration to reduce missed VSyncs
il y a 8 ans
Johannes Hofmann
7b21669c01
Allow setting frames per second
il y a 8 ans
Johannes Hofmann
f775b3227b
Ignore even more VIM swap files
il y a 8 ans
Johannes Hofmann
00b904a720
Add option for offline usage
il y a 8 ans