summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] don't assign clip IDs to tiles that aren't renderedKonstantin Käfer2016-11-085-3/+14
|
* [core] Require point size / line width for DrawMode constructorsJohn Firebaugh2016-11-081-0/+12
|
* [core] Put ignore in util namespaceJohn Firebaugh2016-11-085-9/+11
|
* [core] Introduce and use IndexedTupleJohn Firebaugh2016-11-083-19/+62
|
* [core] Use gl::Program to resolve some rough edges in the GL binding typesJohn Firebaugh2016-11-0841-358/+470
| | | | | | | | | * 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 templateJohn Firebaugh2016-11-0884-1326/+917
|
* [core] Make attribute binding more similar to uniform bindingJohn Firebaugh2016-11-0859-511/+535
|
* [core] Separate pathway for notifying workers of new images/glyphsJohn Firebaugh2016-11-079-12/+74
|
* [core] move Value class outside of Uniform to enforce explicit constructionKonstantin Käfer2016-11-071-4/+8
|
* [core] force explicit initialization of uniform valuesKonstantin Käfer2016-11-0711-113/+113
| | | | force users to use the actual names to avoid implicit conversion accidentally targeting the wrong shader
* [core] remove Uniforms::value in favor of direct constructionKonstantin Käfer2016-11-078-19/+14
|
* [core] remove gl.hpp from all headers that don't need itKonstantin Käfer2016-11-046-8/+1
|
* [core] move pixel blitting to gl::ContextKonstantin Käfer2016-11-043-7/+24
|
* [core] move OpenGL debug information printing to coreKonstantin Käfer2016-11-041-12/+31
|
* [core] move framebuffer reading to gl::ContextKonstantin Käfer2016-11-045-49/+48
|
* [core] add state tracking to pixel transferKonstantin Käfer2016-11-045-3/+65
|
* [core] add state tracking to pixel store packing alignmentKonstantin Käfer2016-11-046-12/+67
|
* [core] add more detail to invalid metrics error in createSpriteImageMike Morris2016-11-041-1/+5
|
* [core] Fix render tile ordering when querying sourcesBruno de Oliveira Abinader2016-11-042-21/+17
|
* [core] Set bucket segments to initialize emptyBruno de Oliveira Abinader2016-11-029-13/+12
|
* [core] convert FrameHistory to use managed texture handlingKonstantin Käfer2016-11-012-62/+21
|
* [core] convert LineAtlas to use managed texture handlingKonstantin Käfer2016-11-019-81/+69
|
* [core] convert GlyphAtlas to use managed texture handlingKonstantin Käfer2016-11-014-68/+31
|
* [core] add ability to upload alpha-only textures + imagesKonstantin Käfer2016-11-013-11/+25
|
* [core] convert SpriteAtlas to use managed texture handlingKonstantin Käfer2016-11-019-125/+80
|
* Revert "[core] Don't use GL_LINEAR if panning w/o rotation nor pitch"Bruno de Oliveira Abinader2016-11-014-1/+7
| | | | This reverts commit a70bfd89108cf1aef75181819ae43e550a69255e.
* [core] fix depth/stencil visualizationKonstantin Käfer2016-11-011-5/+17
| | | | The previous code didn't set the packing correctly, which meant that we had a buffer overrun in the debug code.
* [core] correctly set the framebuffer size on retina screensKonstantin Käfer2016-11-011-0/+4
| | | | Also asserts in Debug mode that the internal state and the OpenGL state are identical
* [core] Cleanup TransformState::getIntegerZoomBruno de Oliveira Abinader2016-10-311-1/+1
|
* [core] Use numeric_limits<>::max() for checking element groupsBruno de Oliveira Abinader2016-10-319-42/+37
|
* [core] Moved util::log2 to its own headerBruno de Oliveira Abinader2016-10-317-28/+12
| | | | | | - Added util::{MIN,MAX}_ZOOM_F to avoid consecutive conversions from double to float - Move util::log2 to its own header (part of mbgl/math)
* [core] Don't use GL_LINEAR if panning w/o rotation nor pitchBruno de Oliveira Abinader2016-10-314-7/+1
|
* [core] Use overscaledZ for scale in collision box shaderBruno de Oliveira Abinader2016-10-311-1/+2
|
* [core] Use VAOs internallyJohn Firebaugh2016-10-282-19/+79
|
* [core] Modern C++ bindings for OpenGLJohn Firebaugh2016-10-2892-1839/+2197
|
* [core] operator bool() must always be explicitJohn Firebaugh2016-10-282-4/+12
| | | | Otherwise, it can participate in unexpected conversions. Case in point: GlyphSet::insert was comparing the result of GlyphMetrics::operator bool() where it wanted to use operator==.
* [core] Methods don't need to be Painter instance methodsJohn Firebaugh2016-10-282-32/+28
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-2728-155/+146
|
* [core] remove tiles for disabled sourcesKonstantin Käfer2016-10-273-6/+31
| | | | When no layer of a source is visible anymore, we are now evicting tiles that are still stored in that source and move them to the cache.
* [core] don't load tiles from sources that aren't usedKonstantin Käfer2016-10-271-3/+6
|
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-2521-256/+449
|
* [core] separate Backend from View for headless renderingKonstantin Käfer2016-10-258-57/+106
|
* [core] geojson source - cancel any pending request when setting geojson ↵Ivo van Dongen2016-10-252-3/+12
| | | | explicitly
* [core] geojson source - clear cache when json content is setIvo van Dongen2016-10-252-1/+3
|
* [core] geojson source - reset req on setURLIvo van Dongen2016-10-251-2/+2
|
* [core] Reuse last placement data in CollisionTile::queryRenderedFeaturesBruno de Oliveira Abinader2016-10-251-32/+68
| | | | | | | | | | | To obtain precise results, we: 1. Round scale value to obtain same results from symbol shader. 2. Generate a boost geometry polygon to check if it intersects() against all feature boxes. 3. Check if current scale is within each feature's minimum and maximum placement scales. 4. De-scale feature boxes when intersecting to account for the fractional zoom scaling.
* [core] Added util::polygonIntersectsPolygonBruno de Oliveira Abinader2016-10-252-20/+13
|
* [core] Simplify CollisionTile::findPlacementScaleBruno de Oliveira Abinader2016-10-252-8/+6
| | | | | | Improve findPlacementScale semantics by moving the check if the placement scale result is bigger than minimum scale out of the function scope.
* [core] Avoid duplicating edges for CollisionTileBruno de Oliveira Abinader2016-10-252-23/+16
| | | | | Make 'edges' static to avoid every instance of CollisionTile having its own copy of it.
* [core] Cleanup function signatures in CollisionTileBruno de Oliveira Abinader2016-10-252-7/+7
| | | | | - Prefer pass-by-value for primitive types. - Use floating point precision for yStretch to match receiving type.