summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Bump Mapbox GL Nativeqt-v1.2.0Thiago Marcos P. Santos2017-11-271-5/+18
| | | | mapbox-gl-native @ cf3357ea4517e74ba3a63434c330a1506064b130
* Bump Mapbox GL NativeThiago Marcos P. Santos2017-11-021-2/+1
| | | | mapbox-gl-native @ 13ec2cc562ce98a089b47dee2987b5e58a0384e2
* Bump Mapbox GL NativeThiago Marcos P. Santos2017-11-011-1/+2
| | | | mapbox-gl-native @ 0ef7b7154f6d4498077a83db5c486c61bc34938c
* Bump Mapbox GL NativeThiago Marcos P. Santos2017-10-181-1/+7
| | | | mapbox-gl-native @ 10f7af19ce1ec61f37459f9cd75e2a0c89a0c790
* Bump Mapbox GL Nativeqt-v1.1.0Thiago Marcos P. Santos2017-08-091-35/+79
| | | | mapbox-gl-native @ edd7948893fcd40a24d96b790e21d3dd028cecbe
* [gcc4.9] Only do bracket initialization where GCC4.9 can handle itThiago Marcos P. Santos2017-01-241-2/+2
| | | | | GCC 4.9 cannot do bracket initialization when one of the attributes already has a default value.
* [core] Return to static, per-segment approach to VAOsJohn Firebaugh2016-11-151-14/+0
| | | | This is safer now -- it can be an implementation detail of Segment/Context. And the typing of SegmentVector now ensures that the attributes and program match.
* [core] Assign attribute locations sequentiallyJohn Firebaugh2016-11-151-0/+1
| | | | | | | Two reasons to prefer explicit sequential location assignment, rather than relying on the GLSL linker to assign locations: * For data-driven properties, we want to have the option to use glDisableVertexAttribArray plus glVertexAttrib*. In order to use glDisableVertexAttribArray, we must avoid using attribute location 0, which cannot be disabled. * We want to use the same VAO in cases where, say, a fill layer might be rendered with FillProgram at first, and then FillPatternProgram later. VAOs do not store the program binding, only the attribute bindings, so as long as the two programs have the same attributes and attribute locations, only a single VAO (per segment) is needed.
* [core] Use gl::Program to resolve some rough edges in the GL binding typesJohn Firebaugh2016-11-081-10/+30
| | | | | | | | | * 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-081-3/+3
|
* [core] move pixel blitting to gl::ContextKonstantin Käfer2016-11-041-0/+11
|
* [core] move framebuffer reading to gl::ContextKonstantin Käfer2016-11-041-0/+10
|
* [core] add state tracking to pixel transferKonstantin Käfer2016-11-041-0/+2
|
* [core] add state tracking to pixel store packing alignmentKonstantin Käfer2016-11-041-0/+2
|
* [core] convert LineAtlas to use managed texture handlingKonstantin Käfer2016-11-011-1/+3
|
* [core] add ability to upload alpha-only textures + imagesKonstantin Käfer2016-11-011-6/+10
|
* [core] convert SpriteAtlas to use managed texture handlingKonstantin Käfer2016-11-011-0/+7
|
* [core] Use VAOs internallyJohn Firebaugh2016-10-281-1/+15
|
* [core] Modern C++ bindings for OpenGLJohn Firebaugh2016-10-281-18/+31
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-8/+7
|
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-251-3/+24
|
* [core] Improve attribute binding APIJohn Firebaugh2016-10-051-0/+10
|
* [core] Refactor BufferJohn Firebaugh2016-10-051-3/+18
|
* [core] remove Raster object in favor of a more low-level Texture objectKonstantin Käfer2016-10-041-0/+21
|
* [core] remove dependence on gl.h typesKonstantin Käfer2016-09-291-44/+14
|
* [core] introduces types for GL objectsKonstantin Käfer2016-09-291-13/+17
|
* [core] rename VAO => VertexArray, FBO => FramebufferKonstantin Käfer2016-09-291-11/+11
|
* [core] merge gl::ObjectStore into gl::ContextKonstantin Käfer2016-09-271-62/+81
|
* [core] rename gl::Config to gl::ContextKonstantin Käfer2016-09-271-0/+108