summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/paint_property_binder.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Rework attribute binding (again)John Firebaugh2017-07-121-7/+8
| | | | | | | | | | These changes are necessary for programs whose set of active attributes is not fixed at compile time by a template parameter pack, but rather varies based on the generated shader text at runtime. In such cases, the attribute location of a given named attribute may vary between instances of the same Program. Previously, attribute bindings were implicitly associated with a location based on template parameter order, and -1 was used to indicate an inactive attribute. This left us unable to disable the appropriate attribute when it went from active to inactive. Now, the state tracker for bindings explicitly associates locations and state, and an empty optional is used to indicate an inactive attribute. In addition, a gl::VertexArray class is now exposed, allowing more flexibility in the relationship between Programs, Segments, and attribute bindings. In this commit, that relationship does not change, but the subsequent commit adjusts it to match gl-js, reduce rebinds, and work around buggy VAO implementations. VertexArray uses a pimpl idiom in order to support implementations that lack the VAO extension. In that case, all VertexArrays share global binding state, reflecting the platform reality in the absence of VAOs, while still providing a uniform API.
* [core] Enable property functions for line-width (#9250)Lauren Budorick2017-06-191-1/+5
|
* [core] Fix composite function approximation for non-integer stopsJohn Firebaugh2017-06-161-5/+5
|
* [core] Eliminate constant attribute bindingsJohn Firebaugh2017-06-141-15/+6
| | | | Rather than binding constant attributes that will never be used, just disable the attribute.
* [core] Dynamic program compilation for data-driven propertiesJohn Firebaugh2017-06-131-17/+43
|
* [core] add constant DDS values as uniformsKonstantin Käfer2017-06-131-2/+21
|
* [core] Unify {Paint,Layout,Light}PropertiesJohn Firebaugh2017-05-151-0/+1
|
* [core] Move render-related sources out of style directory/namespaceJohn Firebaugh2017-05-031-0/+330
Moves the following to the renderer directory and out of the style namespace: * CascadeParameters * PropertyEvaluationParameters * UpdateParameters * PropertyEvaluator * DataDrivenPropertyEvaluator * CrossFadedPropertyEvaluator * PaintPropertyBinder * PaintProperyStatistics * PossiblyEvaluatedPropertyValue * TransitioningLight * EvaluatedLight