Konstantin Käfer
cc78b74098
[core] remove dependence on gl.h types
2016-09-29 10:17:47 -07:00
Konstantin Käfer
44c7e9d05e
[core] merge gl::ObjectStore into gl::Context
2016-09-27 11:03:29 -07:00
Konstantin Käfer
ce42d22984
[core] rename gl::Config to gl::Context
2016-09-27 11:03:29 -07:00
Konstantin Käfer
afb93d4d3a
[core] track VAOs and Buffers
2016-09-26 11:14:40 +02:00
Konstantin Käfer
85e222c825
[core] change bool overdraw to PaintMode::Overdraw
2016-09-07 17:56:38 +02:00
Konstantin Käfer
ff0c895eaa
[core] change bool wrap/repeating to enum class SpritePatternMode
2016-09-07 17:56:38 +02:00
Bruno de Oliveira Abinader
c670b08ecb
[core] Use PropertyValue<T> for Annotation line/fill
2016-07-13 11:57:09 +03:00
John Firebaugh
ae838b397b
[core] Move translatedMatrix to RenderTile
2016-07-11 18:39:50 -07:00
John Firebaugh
a27b5586e5
[core] Pass RenderTile rather than individual parameters
2016-07-11 18:39:50 -07:00
John Firebaugh
6e77149c13
[core] Introduce PaintParameters
...
Use it to DRY selection of regular vs. overdraw shaders and VAOs.
2016-07-11 18:39:50 -07:00
John Firebaugh
822ec091da
[core] Introduce non-anonymous Shaders class
2016-07-11 18:39:50 -07:00
Konstantin Käfer
4f26c8122a
[core] track texture state to avoid redundand binds
2016-07-08 13:11:25 +02:00
Konstantin Käfer
69c529e264
[core] move shaders to anon struct and alias them
2016-07-07 15:06:59 +02:00
Bruno de Oliveira Abinader
f94b354b53
[core] Fix typo in shader outline pattern
2016-07-02 17:17:28 +03:00
Bruno de Oliveira Abinader
a17b0bcd82
[core] Fix overdraw mode on Linux
...
- Use glBindAttribLocation for GLSL attributes.
- Create a separate shader for each shader that supports overdraw.
Needed because each uniform location must be known for every program.
- Create a separate VAO for each shader inside buckets.
Needed because we can only bind a VAO to a specific shader.
Fixes #5435 .
2016-07-01 19:47:35 +03:00
Bruno de Oliveira Abinader
97dffeb03d
[core] s/Wireframe/Overdraw/g
2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
df5a395708
[core] Refactor wireframe to match JS overdraw mode
2016-06-20 13:24:20 +03:00
John Firebaugh
a020e535ca
[core] Add a few conveniences to Color
2016-06-15 13:22:00 -07:00
Bruno de Oliveira Abinader
fc0f4edef3
[core] Fix sublayer depth when drawing stroke
...
Port from -js: 002c690712
2016-06-15 18:53:05 +03:00
Bruno de Oliveira Abinader
54e3aa185f
[core] Cleaned up Painter::render{Background,Fill}
2016-06-15 18:53:05 +03:00
Bruno de Oliveira Abinader
814e516a4f
[core] Separate pattern size from draw-time variables
...
Part of https://github.com/mapbox/mapbox-gl-shaders/issues/1 .
2016-06-15 18:53:05 +03:00
Young Hahn
24b66bc8cd
Color class ( #5361 )
...
* Color class
* Switch to list initialization
2016-06-15 11:38:22 -04:00
Bruno de Oliveira Abinader
9142c447e8
[tidy] Check llvm-namespace-comment
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/llvm-namespace-comment.html
2016-06-13 23:32:05 +03:00
Bruno de Oliveira Abinader
8b28b6ab6b
[core] Renamed OutlineShader's color uniform
...
Part of https://github.com/mapbox/mapbox-gl-shaders/issues/8 .
2016-06-07 15:04:02 +03:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
a43940afb2
[core] Runtime style layer API
2016-06-02 14:51:39 -07:00
Bruno de Oliveira Abinader
2038a21cb5
[core] s/GLObjectStore/ObjectStore/
2016-06-01 13:53:39 +03:00
John Firebaugh
c568a8ad77
[core] Port "separate u_opacity from u_color"
...
0d34125196
1f5afa7db0
2016-05-25 21:37:58 -07:00
Bruno de Oliveira Abinader
7143408f69
[core] Implement MapDebugOptions::Wireframe
...
Together with MapDebugOptions::Collision, provides "wireframe" rendering
output so all drawn objects are visible. This mode ignores the line
width, background and fill colors for better visualization.
Fixes #4359 .
2016-05-23 11:50:05 +03:00
Konstantin Käfer
ec70125e41
[core] move TileData and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
Konstantin Käfer
bdcbceff80
[core] move Tile to use UnwrappedTileID
2016-05-10 14:50:56 +02:00
Konstantin Käfer
dde59eaf76
[core] move Painter and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
Molly Lloyd
c86f558e9d
[core] port outlinepattern for fill-pattern anti-aliasing from gl-js to native
...
add outlinepattern shader class to relevant files
add outlinepattern code to painter_fill.cpp
add outlinepattern code to fill_bucket
refactor painter_fill, fix tests
fix merge conflicts and setDepthSublayer
update render test to no antialiasing so travis will be happy
2016-04-28 17:13:20 -07:00
John Firebaugh
b2beeda50b
[core] Adopt a strict naming convention for style properties
...
This will allow code to be generated from the style specification.
2016-04-21 14:05:40 -07:00
Ansis Brammanis
d2b9b1c348
[core] always set activeTexture before binding a texture
2016-04-14 17:12:56 -07:00
Ansis Brammanis
273600c16e
[core] simplify conversions from pixels to tile units
...
fix #3768
2016-03-30 18:53:44 -07:00
Ansis Brammanis
b352bb81d8
[core] fix background-pattern rendering in perspective view
...
fix #3801
2016-03-28 16:59:39 -07:00
Konstantin Käfer
15bc11ab23
[core] cancel TileID::overscaling()
2016-03-08 13:34:17 +01:00
Bruno de Oliveira Abinader
8944e2c588
[core] Replaced raw values with util::tileSize
2016-03-03 17:02:15 +02:00
Bruno de Oliveira Abinader
9346a6d038
[core] Avoid precompute overscaling for TileID
...
Plus type change for zoom and removed redundant inlines.
2016-03-01 21:39:36 +00:00
John Firebaugh
9c26f06318
[core] Thread GLObjectStore through to Holder objects
...
This eliminates the reliance on ThreadContext to provide GLObjectStore, and statically enforces that GL cleanup functions happen only when GLObjectStore::performCleanup is called.
With the elimination of the Map thread, this becomes important because there may be multiple GLObjectStore's per-thread, and Map will need to ensure that the correct context is active when calling GLObjectStore::performCleanup.
2016-02-18 15:15:24 -08:00
Bruno de Oliveira Abinader
0386dc7a4e
[gl] Use Shader::getID() whenever possible
2016-02-18 13:27:35 +02:00
Ansis Brammanis
4e0d1070f6
[core] support tiles with non-4096 extents
...
Convert all geometries to the maximum extent supported by our buffers
and then use that constant extent everywhere else.
2016-02-02 14:49:03 -08:00
John Firebaugh
9b62661b07
[core] Use experimental optional instead of mapbox::util::optional
2016-01-19 17:56:48 -08:00
kelvinabrokwa
73be3558d7
[core] seamless fill-pattern
...
seamless across dateline
upgrade test-suite version
2016-01-12 16:18:24 -08:00
John Firebaugh
45c7b472ad
[core] Ensure GL state is set to necessary values in more places
2015-12-09 12:10:23 -08:00
John Firebaugh
e5181e2668
[core] Use optional where SpriteAtlas return values might not exist
...
Fixes #3162
2015-12-01 18:05:54 -08:00
John Firebaugh
1e350b7ea4
[core] Reorganize sprite related files
2015-11-12 13:03:14 -08:00
John Firebaugh
54e08b1f83
[core] Eliminate use of ClassProperties for paint
2015-11-10 11:33:17 -08:00
Bruno de Oliveira Abinader
5ef5d08867
[core] Reset GL values when needed
2015-11-06 20:05:01 +02:00