Bruno de Oliveira Abinader
a3ea4acb7c
[core] convert remaining types to use OpenGL header defined variants
2015-09-15 13:22:07 +02:00
Bruno de Oliveira Abinader
c33a6bddc6
[core] GL types for buckets, textures, buffers
2015-09-15 13:22:04 +02:00
Bruno de Oliveira Abinader
05d01194b7
[core] GLObjectStore now uses GLuint
2015-09-15 13:22:02 +02:00
Bruno de Oliveira Abinader
b2fcde5e8b
[shader] GL types for all Shader attributes
2015-09-15 12:50:20 +02:00
Bruno de Oliveira Abinader
1f1b3fbbc2
[shader] Shaders vertex and fragments are now GLchar*
2015-09-15 12:50:20 +02:00
Konstantin Käfer
5ef7011089
don't delete the shaders before the program
...
some GPU drivers have issues with deleting shader objects that are attached to programs. while this is allowed by the spec, it seems that some drivers are crashing nonetheless.
2015-09-14 15:16:16 +02:00
Konstantin Käfer
6db8e65394
don't validate the program
...
it's not in a state where validation always succeeds with all drivers, e.g. because textures might not be attached yet
2015-09-14 15:15:08 +02:00
Bruno de Oliveira Abinader
2156aa35ca
[shader] bind() is now a pure virtual
...
- Shader::bind() now receives a GLbyte*
- BUFFER_OFFSET now uses GLbyte
2015-09-14 11:29:49 +03:00
Bruno de Oliveira Abinader
8d6b9696bf
[shader] Moved 'a_pos' GL attribute to Shader
...
Avoids duplicated code in all derived classes.
2015-09-14 11:29:48 +03:00
Minh Nguyễn
60d0db0d2d
Increased precision of coordinate conversion methods
...
Fixes #2230 .
2015-09-11 11:56:25 -07:00
Ansis Brammanis
b4b56c951e
increase precision for coordinate conversions
...
This fixes the earthquakes while panning at high zoom levels.
Cherry-picked from 9607171612c4a40e41eddaff5230ad571571a5b9 on the perspective-improved-gestures branch.
2015-09-11 11:56:25 -07:00
Justin R. Miller
0d899df9dd
fixes #1675 : abstract annotation tile refresh check/render; trigger post-sprite/sprite store load
2015-09-08 18:03:10 -07:00
Minh Nguyễn
0a172a21fd
CameraOptions
...
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level.
Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course.
Support customizable timing functions on iOS.
iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation.
Fixes #1643 , fixes #1834 . Ref #1581 .
2015-09-07 09:22:52 -07:00
Ansis Brammanis
cccae7d153
fix circles at very high zoom levels
...
5c8be4b848
2015-09-02 18:00:54 -04:00
Bruno de Oliveira Abinader
0ff7cf20e9
Get rid of MapData::{get,set}NeedsRepaint
2015-09-02 23:20:47 +03:00
Bruno de Oliveira Abinader
0b501e0566
Substitute nudgeTransitions with async view invalidation
2015-09-02 23:20:46 +03:00
Bruno de Oliveira Abinader
e920328223
Provide view invalidation call coalescion via uv_async_t
2015-09-02 23:20:46 +03:00
Bruno de Oliveira Abinader
227776dee0
Style no longer requires mainloop access
2015-09-02 23:18:29 +03:00
Mike Morris
322e1aa2c3
Merge pull request #2179 from mapbox/node
...
Node bindings
2015-09-02 15:46:43 -04:00
Mike Morris
45eb197bd3
remove debug logging and whitespace [skip ci]
2015-09-01 16:46:57 -04:00
Thiago Marcos P. Santos
244fe93f0e
Bump geojsonvt version
...
It was downgraded (probably accidentally) by 60e9712916 .
2015-09-01 16:49:35 +03:00
John Firebaugh
55d25a80a7
In still mode, don't load resources until a render request is made
2015-08-31 18:09:11 -07:00
John Firebaugh
abc1c84fb8
Merge branch 'master' into node
2015-08-31 16:45:21 -07:00
Mike Morris
6bfda4fcef
local nvm?
2015-08-28 15:49:25 -04:00
Ansis Brammanis
d50ade7aa4
improve dashed and patterned line antialiasing
...
in perspective view. This is exactly the same approach used for regular
lines. I just forgot to implement it for these types of lines.
2015-08-27 17:42:27 -04:00
Ansis Brammanis
294b307cb3
fix line antialiasing adjustment bug
...
fix #2189
This puts an upper limit on how much lines can be blurred because of
their y position. It's a hacky fix but the entire way lines are
antialiased in perspective view is hacky.
2015-08-27 16:52:50 -04:00
Minh Nguyễn
0e456940b9
Merge branch 'master' into perspective-without-y-flip
2015-08-25 14:13:16 -07:00
Mike Morris
4540c3c0e8
View::swap -> View::beforeRender View::afterRender
...
To be able to resize the framebuffer on the map thread
in HeadlessView.
2015-08-25 14:39:49 -04:00
Bruno de Oliveira Abinader
765c4695d8
Revert "only update the render order array when there are changes to tiles"
...
This reverts commit fd98607c5f .
Fixes #2163 .
2015-08-25 11:36:10 -07:00
Bruno de Oliveira Abinader
c7dfbec96e
Make Bucket::uploaded an atomic bool
...
This class is called from multiple threads, so we better make this
synchronization flag atomic.
2015-08-25 11:36:10 -07:00
Ansis Brammanis
36d71c95dc
move the point origin back to bottom-left
2015-08-25 11:59:02 -04:00
Ansis Brammanis
10f0d8d23a
fix circle rendering
2015-08-24 20:33:19 -04:00
Ansis Brammanis
51c93867ae
fix LatLng --> point for perspective views
2015-08-24 18:41:51 -04:00
Ansis Brammanis
99c5976498
port minor collision code cleanup, fix #1705
...
https://github.com/mapbox/mapbox-gl-js/pull/1261
2015-08-24 18:41:51 -04:00
Ansis Brammanis
19c256e349
make fill-image tests less sensitive
2015-08-24 18:41:51 -04:00
Ansis Brammanis
14dee43a71
add map.setPitch(pitch) and map.getPitch()
2015-08-24 18:41:51 -04:00
Ansis Brammanis
9e68e49c89
fix depth clipping in perspective view
...
The depth range is now set slightly differently. Both ends of the range
are shifted for each layer to solve some precision issues.
Some layers draw multiple things at different depths. For example, fill
layers draw fills and antialiasing separately. To handle this case, I
added setDepthSublayer(n) which a
2015-08-24 18:41:51 -04:00
Ansis Brammanis
0d68c4fedf
load correct covering tiles in perspective view
...
port pointCoordinate from -js to convert screen points to tile
coordinates correctly in perspective view.
2015-08-24 18:41:51 -04:00
Ansis Brammanis
cef1b25444
port invert and transformMat4 from gl-matrix
2015-08-24 18:41:51 -04:00
Ansis Brammanis
554425b753
fix earthquakes in perspective view
...
Use higher precision for matrix calculations so that the map does not
jump around while zooming.
2015-08-24 18:41:50 -04:00
Ansis Brammanis
bc92c2de39
fix symbol collision detection in perspective view
2015-08-24 18:41:50 -04:00
Ansis Brammanis
494489f9a0
fix symbol rendering in perspective view
2015-08-24 18:41:50 -04:00
Ansis Brammanis
be36ce0198
fix fill antialiasing for perspective views
2015-08-24 18:41:50 -04:00
Ansis Brammanis
3027f8c0aa
port line rendering fixes for perspective views
2015-08-24 18:41:50 -04:00
Ansis Brammanis
f0885d36ff
port mat2 from gl-matrix
2015-08-24 18:41:50 -04:00
Ansis Brammanis
2535e669e2
hacks to see stuff
2015-08-24 18:41:50 -04:00
Ansis Brammanis
8d22e2bf01
port perspective projection matrix from -js
2015-08-24 18:41:50 -04:00
Ansis Brammanis
d513910712
port mat4.perspective and mat4.rotate_x
2015-08-24 18:41:49 -04:00
Lucas Wojciechowski
648b587959
Fixed missing labels and icons
2015-08-24 14:22:02 -07:00
John Firebaugh
0451aca37e
Merge branch 'v8'
2015-08-24 10:47:30 -07:00