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
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
19e28a35d8
Don't call glClear when map fills the whole screen
7 년 전
Johannes Hofmann
abb562f412
map_view_gl: Specify min and max zoom level
7 년 전
Johannes Hofmann
fcbad65155
Fix clippy warnings
7 년 전
Johannes Hofmann
e4e11e76cd
Move glClear call out of the critical path
7 년 전
Johannes Hofmann
980ce573f1
Document map_view.rs
7 년 전
Johannes Hofmann
098ebc582a
Include resources with include_bytes! macro
7 년 전
Johannes Hofmann
a7db860456
Improve error handling with OpenGL functions
7 년 전
Johannes Hofmann
5d67d3bef5
Add --sync option
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
00b904a720
Add option for offline usage
8 년 전
Johannes Hofmann
2b1fb5a60c
map_view: Rename zoom_level -> render_zoom_level
8 년 전
Johannes Hofmann
e735fafcda
Add step_zoom method
8 년 전
Johannes Hofmann
78d7b41aee
Remove some println calls
8 년 전
Johannes Hofmann
295760f5c6
Generate no_tile.png
8 년 전
Johannes Hofmann
e3607d7c78
Prioritize tile loading based on current view
8 년 전
Johannes Hofmann
350e8db588
Add ability to switch tile source during execution
8 년 전
Johannes Hofmann
16ffdb5baa
Initial commit :>
Started 2015
8 년 전