Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Use indexed rendering everywhere | John Firebaugh | 2016-12-01 | 1 | -2/+4 |
| | |||||
* | [core] Convert style properties to a tuple-based approach | John Firebaugh | 2016-11-17 | 1 | -9/+9 |
| | | | | | | | | 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] Introduce SegmentVector | John Firebaugh | 2016-11-15 | 1 | -2/+4 |
| | |||||
* | [core] Use gl::Program to resolve some rough edges in the GL binding types | John Firebaugh | 2016-11-08 | 1 | -8/+10 |
| | | | | | | | | | * 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 | -5/+5 |
| | |||||
* | [core] force explicit initialization of uniform values | Konstantin Käfer | 2016-11-07 | 1 | -5/+5 |
| | | | | 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] Modern C++ bindings for OpenGL | John Firebaugh | 2016-10-28 | 1 | -62/+40 |
| | |||||
* | [core] Rationalize shader names | John Firebaugh | 2016-10-06 | 1 | -2/+2 |
| | | | | {layer type}{subtype}Shader | ||||
* | [core] Adhere to vertices/vertexBuffer naming convention | John Firebaugh | 2016-10-05 | 1 | -3/+3 |
| | |||||
* | [core] Refactor Buffer | John Firebaugh | 2016-10-05 | 1 | -3/+3 |
| | |||||
* | [core] remove dependence on gl.h types | Konstantin Käfer | 2016-09-29 | 1 | -4/+5 |
| | |||||
* | [core] merge gl::ObjectStore into gl::Context | Konstantin Käfer | 2016-09-27 | 1 | -3/+3 |
| | |||||
* | [core] rename gl::Config to gl::Context | Konstantin Käfer | 2016-09-27 | 1 | -9/+9 |
| | |||||
* | [core] track VAOs and Buffers | Konstantin Käfer | 2016-09-26 | 1 | -2/+2 |
| | |||||
* | [core] change bool wrap/repeating to enum class SpritePatternMode | Konstantin Käfer | 2016-09-07 | 1 | -2/+4 |
| | |||||
* | [core] Introduce PaintParameters | John Firebaugh | 2016-07-11 | 1 | -6/+6 |
| | | | | Use it to DRY selection of regular vs. overdraw shaders and VAOs. | ||||
* | [core] Introduce non-anonymous Shaders class | John Firebaugh | 2016-07-11 | 1 | -4/+3 |
| | |||||
* | [core] track texture state to avoid redundand binds | Konstantin Käfer | 2016-07-08 | 1 | -1/+1 |
| | |||||
* | [core] move shaders to anon struct and alias them | Konstantin Käfer | 2016-07-07 | 1 | -24/+24 |
| | |||||
* | [core] Added missing overdraw arrays | Bruno de Oliveira Abinader | 2016-07-02 | 1 | -4/+7 |
| | |||||
* | [core] Fix overdraw mode on Linux | Bruno de Oliveira Abinader | 2016-07-01 | 1 | -22/+25 |
| | | | | | | | | | | - 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 | -12/+4 |
| | |||||
* | [core] Add a few conveniences to Color | John Firebaugh | 2016-06-15 | 1 | -1/+1 |
| | |||||
* | [core] Cleaned up Painter::render{Background,Fill} | Bruno de Oliveira Abinader | 2016-06-15 | 1 | -16/+14 |
| | |||||
* | [core] Separate pattern size from draw-time variables | Bruno de Oliveira Abinader | 2016-06-15 | 1 | -31/+11 |
| | | | | Part of https://github.com/mapbox/mapbox-gl-shaders/issues/1. | ||||
* | Color class (#5361) | Young Hahn | 2016-06-15 | 1 | -1/+1 |
| | | | | | | * 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 | ||||
* | [core] Rationalize naming for style-related code | John Firebaugh | 2016-06-02 | 1 | -3/+7 |
| | |||||
* | [core] Runtime style layer API | John Firebaugh | 2016-06-02 | 1 | -1/+2 |
| | |||||
* | [core] s/GLObjectStore/ObjectStore/ | Bruno de Oliveira Abinader | 2016-06-01 | 1 | -3/+3 |
| | |||||
* | [core] Port "separate u_opacity from u_color" | John Firebaugh | 2016-05-25 | 1 | -14/+3 |
| | | | | | https://github.com/mapbox/mapbox-gl-shaders/commit/0d3412519618a3a1672db9fa21f96f90070cf84c https://github.com/mapbox/mapbox-gl-js/commit/1f5afa7db08a2bdcc492a46e500ff5d020e6f4a2 | ||||
* | [core] Implement MapDebugOptions::Wireframe | Bruno de Oliveira Abinader | 2016-05-23 | 1 | -9/+19 |
| | | | | | | | | 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. | ||||
* | [core] retain tiles differently and remove old TileID class | Konstantin Käfer | 2016-05-10 | 1 | -8/+11 |
| | |||||
* | [core] move Painter and dependents to new *TileID classes | Konstantin Käfer | 2016-05-10 | 1 | -1/+2 |
| | |||||
* | [core] Adopt a strict naming convention for style properties | John Firebaugh | 2016-04-21 | 1 | -15/+15 |
| | | | | This will allow code to be generated from the style specification. | ||||
* | [core] Convert MapContext to Map::Impl; eliminate indirection | John Firebaugh | 2016-04-15 | 1 | -0/+1 |
| | |||||
* | [core] simplify conversions from pixels to tile units | Ansis Brammanis | 2016-03-30 | 1 | -5/+4 |
| | | | | fix #3768 | ||||
* | [core] fix background-pattern rendering in perspective view | Ansis Brammanis | 2016-03-28 | 1 | -0/+105 |
fix #3801 |