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