Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Cleanup symbol clipping | Bruno de Oliveira Abinader | 2016-11-18 | 1 | -13/+5 |
| | |||||
* | [core] Convert style properties to a tuple-based approach | John Firebaugh | 2016-11-17 | 1 | -2/+2 |
| | | | | | | | | This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md. The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily. Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state. | ||||
* | [core] Use indexed rendering for collision boxes | John Firebaugh | 2016-11-15 | 1 | -1/+3 |
| | |||||
* | [core] Use gl::Program to resolve some rough edges in the GL binding types | John Firebaugh | 2016-11-08 | 1 | -15/+12 |
| | | | | | | | | | * Extract `ignore` util to separate header. * `Segment` now tracks offset and length of indices, rather than primitives. This is more natural. * Introduce `VertexVector` and `IndexVector` types. These types carry information about the intended draw mode (`Triangles`, `LineStrip`, etc.), and ensure that elements are always appended in a group size appropriate for that draw mode, for both indexed and unindexed rendering. * `Program`, rather than `Drawable`, is now the unifying object for draw calls. `Program` is the best place to type check the draw call, because it is typed to carry information about the intended primitive, vertex type, attributes, and uniforms. * Use the debug shaders for debug tile rendering, like gl-js. * Fix the draw mode for background. It was drawing triangle strips with a triangles array. Surprised this didn’t cause issues. Now it’s type checked. | ||||
* | [core] Introduce gl::Program template | John Firebaugh | 2016-11-08 | 1 | -17/+17 |
| | |||||
* | [core] force explicit initialization of uniform values | Konstantin Käfer | 2016-11-07 | 1 | -4/+4 |
| | | | | force users to use the actual names to avoid implicit conversion accidentally targeting the wrong shader | ||||
* | [core] remove Uniforms::value in favor of direct construction | Konstantin Käfer | 2016-11-07 | 1 | -2/+2 |
| | |||||
* | [core] convert LineAtlas to use managed texture handling | Konstantin Käfer | 2016-11-01 | 1 | -1/+1 |
| | |||||
* | [core] convert GlyphAtlas to use managed texture handling | Konstantin Käfer | 2016-11-01 | 1 | -1/+1 |
| | |||||
* | [core] convert SpriteAtlas to use managed texture handling | Konstantin Käfer | 2016-11-01 | 1 | -2/+2 |
| | |||||
* | Revert "[core] Don't use GL_LINEAR if panning w/o rotation nor pitch" | Bruno de Oliveira Abinader | 2016-11-01 | 1 | -1/+1 |
| | | | | This reverts commit a70bfd89108cf1aef75181819ae43e550a69255e. | ||||
* | [core] Don't use GL_LINEAR if panning w/o rotation nor pitch | Bruno de Oliveira Abinader | 2016-10-31 | 1 | -1/+1 |
| | |||||
* | [core] Use overscaledZ for scale in collision box shader | Bruno de Oliveira Abinader | 2016-10-31 | 1 | -1/+2 |
| | |||||
* | [core] Modern C++ bindings for OpenGL | John Firebaugh | 2016-10-28 | 1 | -220/+91 |
| | |||||
* | [core] change std::array<uint16_t, 2> to mbgl::Size | Konstantin Käfer | 2016-10-27 | 1 | -1/+1 |
| | |||||
* | [core] Disable stencil test when rendering collision boxes | Bruno de Oliveira Abinader | 2016-10-12 | 1 | -3/+1 |
| | |||||
* | [core] Rationalize shader names | John Firebaugh | 2016-10-06 | 1 | -5/+5 |
| | | | | {layer type}{subtype}Shader | ||||
* | [core] remove dependence on gl.h types | Konstantin Käfer | 2016-09-29 | 1 | -12/+14 |
| | |||||
* | [core] merge gl::ObjectStore into gl::Context | Konstantin Käfer | 2016-09-27 | 1 | -9/+9 |
| | |||||
* | [core] rename gl::Config to gl::Context | Konstantin Käfer | 2016-09-27 | 1 | -25/+25 |
| | |||||
* | [core] track VAOs and Buffers | Konstantin Käfer | 2016-09-26 | 1 | -6/+5 |
| | |||||
* | [core] Don't use depth test unless text is pitch-aligned to map (#6404) | Young Hahn | 2016-09-22 | 1 | -8/+4 |
| | | | | | | | | | | | | | | | | * [core, ios, android] Use `auto` value for properties with calculated defaults * Fix render tests * [core] Don't use depth test unless text is pitch-aligned to map. * Bump mapbox-gl-test-suite * TransformState pitch is already in radians * Reduce setDepthSublayer calls * Bump test suite | ||||
* | [core] Merge GlyphStore and GlyphAtlas | John Firebaugh | 2016-09-19 | 1 | -1/+1 |
| | |||||
* | [core] change bool overdraw to PaintMode::Overdraw | Konstantin Käfer | 2016-09-07 | 1 | -4/+4 |
| | |||||
* | [core] Move translatedMatrix to RenderTile | John Firebaugh | 2016-07-11 | 1 | -4/+5 |
| | |||||
* | [core] Pass RenderTile rather than individual parameters | John Firebaugh | 2016-07-11 | 1 | -15/+12 |
| | |||||
* | [core] Introduce PaintParameters | John Firebaugh | 2016-07-11 | 1 | -6/+7 |
| | | | | Use it to DRY selection of regular vs. overdraw shaders and VAOs. | ||||
* | [core] Introduce non-anonymous Shaders class | John Firebaugh | 2016-07-11 | 1 | -7/+5 |
| | |||||
* | [core] track texture state to avoid redundand binds | Konstantin Käfer | 2016-07-08 | 1 | -10/+4 |
| | |||||
* | [core] Make extrudeScale calculations more similar to JS | John Firebaugh | 2016-07-07 | 1 | -14/+19 |
| | |||||
* | [core] move shaders to anon struct and alias them | Konstantin Käfer | 2016-07-07 | 1 | -19/+20 |
| | |||||
* | [core] Fix overdraw mode on Linux | Bruno de Oliveira Abinader | 2016-07-01 | 1 | -16/+19 |
| | | | | | | | | | | - 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. | ||||
* | [core] s/Wireframe/Overdraw/g | Bruno de Oliveira Abinader | 2016-06-20 | 1 | -2/+2 |
| | |||||
* | [core] Refactor wireframe to match JS overdraw mode | Bruno de Oliveira Abinader | 2016-06-20 | 1 | -2/+2 |
| | |||||
* | Color class (#5361) | Young Hahn | 2016-06-15 | 1 | -2/+2 |
| | | | | | | * Color class * Switch to list initialization | ||||
* | [tidy] Check llvm-namespace-comment | Bruno de Oliveira Abinader | 2016-06-13 | 1 | -1/+1 |
| | | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/llvm-namespace-comment.html | ||||
* | text-pitch-alignment (#5288) | Young Hahn | 2016-06-10 | 1 | -10/+20 |
| | | | | | | | | | | | | * First pass at port of https://github.com/mapbox/mapbox-gl-js/pull/2668 * RotationAlignmentType => AlignmentType * Handle undefined default value for text-pitch-alignment and implement inheritance for this value from text-rotation-alignment * Update dependencies * Move handling fo undefined default value out of camelize functions | ||||
* | [core] Rationalize naming for style-related code | John Firebaugh | 2016-06-02 | 1 | -2/+7 |
| | |||||
* | [core] Runtime style layer API | John Firebaugh | 2016-06-02 | 1 | -5/+5 |
| | |||||
* | [core] s/GLObjectStore/ObjectStore/ | Bruno de Oliveira Abinader | 2016-06-01 | 1 | -9/+9 |
| | |||||
* | [core] Update sdf shader code | Bruno de Oliveira Abinader | 2016-06-01 | 1 | -21/+15 |
| | | | | | Ported the following patch: - [convert mat4 exMatrix to a vec2 extrudeScale](https://github.com/mapbox/mapbox-gl-shaders/commit/a8d549b7a41540d3a99767975ff1b7b18a6010e9) | ||||
* | [core] Update icon shader code | Bruno de Oliveira Abinader | 2016-06-01 | 1 | -23/+9 |
| | | | | | Ported the following patch: - [convert mat4 exMatrix to a vec2 extrudeScale](https://github.com/mapbox/mapbox-gl-shaders/commit/a8d549b7a41540d3a99767975ff1b7b18a6010e9) | ||||
* | [core] Port "separate u_opacity from u_color" | John Firebaugh | 2016-05-25 | 1 | -16/+2 |
| | | | | | https://github.com/mapbox/mapbox-gl-shaders/commit/0d3412519618a3a1672db9fa21f96f90070cf84c https://github.com/mapbox/mapbox-gl-js/commit/1f5afa7db08a2bdcc492a46e500ff5d020e6f4a2 | ||||
* | [core] box_shader ⇢ collision_box_shader | John Firebaugh | 2016-05-25 | 1 | -1/+1 |
| | |||||
* | [core] Restore default texture unit | Thiago Marcos P. Santos | 2016-05-23 | 1 | -0/+1 |
| | | | | Play nice with the GL context when we are sharing it. | ||||
* | [core] better symbol fading with texture lookups (#4579) | Ansis Brammanis | 2016-05-20 | 1 | -17/+7 |
| | | | | | | | | | - this is simpler than predicting opacity based on current zooming speed - this is smoother: symbols don't flicker when changing zoom speed or when zooming in and out rapidly. https://github.com/mapbox/mapbox-gl-js/commit/1df146627092b58c8db64d45530c74cd12a3fa02 fix #4562 | ||||
* | [core] Added Viewport mode | Bruno de Oliveira Abinader | 2016-05-11 | 1 | -2/+4 |
| | | | | | | Satisfies embedding platforms that requires the viewport coordinate systems to be set according to its standards e.g. viewport mirrored vertically. | ||||
* | [core] move TileData and dependents to new *TileID classes | Konstantin Käfer | 2016-05-10 | 1 | -1/+0 |
| | |||||
* | [core] move Painter and dependents to new *TileID classes | Konstantin Käfer | 2016-05-10 | 1 | -10/+15 |
| | |||||
* | [core] Quarantine style property irregularities in layer classes (#4792) | John Firebaugh | 2016-04-22 | 1 | -3/+3 |
| | | | This moves the *{Layout,Paint}Properties classes closer to code generation. |