Commit Graph

1814 Commits

Author SHA1 Message Date
Tim Schaub 39a4f42e3d Resize canvas to handle rotation 2018-11-16 14:56:48 +01:00
Tim Schaub 6234b69512 Handle opacity and rotation in canvas intermediate renderer 2018-11-16 14:56:48 +01:00
Tim Schaub 5ba8795355 Tile layer rendering with the composite renderer 2018-11-16 14:56:48 +01:00
Tim Schaub 433ab97d1c End of composeFrame 2018-11-16 14:56:48 +01:00
Olivier Guyot 1ae1b60308 Rename webgl-new to webgl 2018-11-16 14:05:06 +01:00
Olivier Guyot 66a74ac019 Renamed WebGLBuffer to WebGLArrayBuffer to avoid conflicts
In the future this should be reworked to have a clearer API in general.
2018-11-16 14:02:10 +01:00
Olivier Guyot a84559d1fb Added documentation & fixed linting for WebGL classes 2018-11-16 14:02:10 +01:00
Olivier Guyot 530bcd0c88 Improve handling of uniforms in webgl helper 2018-11-16 14:02:10 +01:00
Olivier Guyot 94524fb431 Webgl Helper now handles uniforms with framestate as input 2018-11-16 14:02:10 +01:00
Olivier Guyot 716256e8f3 Cleaned up the heatmap layer & use dynamic radius 2018-11-16 14:02:10 +01:00
Olivier Guyot 0c1424c5bb Added the concept of post process passes for webgl 2018-11-16 14:02:10 +01:00
Olivier Guyot 7fa2189fe9 Remove the bulk of the WebGL legacy code.
Things left to do:
* redo an icon layer example
* redo a clipping layer example
* update docs where WebGL renderers are mentioned
2018-11-16 14:02:08 +01:00
Olivier Guyot d3294730f1 Renamed WebGLContext to Helper for clarity 2018-11-16 14:01:21 +01:00
Olivier Guyot 51becf1c2e Allow custom post processing & improve blending 2018-11-16 14:01:21 +01:00
Olivier Guyot 298af9ca0f added the concept of frame buffer in webgl context 2018-11-16 14:01:21 +01:00
Olivier Guyot 81807c5910 Added size & position callbacks 2018-11-16 14:01:21 +01:00
Olivier Guyot 3c5eac13c9 Handle alpha & custom shaders in renderer 2018-11-16 14:01:21 +01:00
Olivier Guyot 154a046130 Added texcoord in default shader 2018-11-16 14:01:20 +01:00
Olivier Guyot 583dfb8e9d Actually make the renderer work 2018-11-16 14:01:20 +01:00
Olivier Guyot 1c11dc5311 Improved shader compilation & fixed PointsLayer ones 2018-11-16 14:01:20 +01:00
Olivier Guyot 97b16be572 Added attribute handling 2018-11-16 14:01:20 +01:00
Olivier Guyot fc20dc986c Better handle uniform locations in shaders 2018-11-16 14:01:20 +01:00
Olivier Guyot 66efee9e22 Add vertex shaders to pointslayer 2018-11-16 14:01:20 +01:00
Olivier Guyot 71270efa75 Added a new WebGLPointsRenderer 2018-11-16 14:01:20 +01:00
Andreas Hocevar 36cf7227c0 Merge pull request #8926 from gberaudo/replay_refactoring
Uncouple replay creation and rendering
2018-11-16 13:54:18 +01:00
Guillaume Beraudo 81d0bc21d5 Pass instructions to executor constructor 2018-11-16 12:36:50 +01:00
Guillaume Beraudo ce44a9a3e4 Final renamings 2018-11-15 23:46:20 +01:00
Guillaume Beraudo 89fed65f07 Fix incorrect Executor/Builder types 2018-11-15 23:27:43 +01:00
ahocevar 94bf02176e Rename ExecutorGroup and move getMaxExtent to Executor 2018-11-15 20:03:34 +01:00
Guillaume Beraudo 0f5ced8483 Reduce usage of "replay" term 2018-11-15 15:20:41 +01:00
Guillaume Beraudo ba6a6fff7d Module renaming 2018-11-15 15:20:41 +01:00
Guillaume Beraudo e299863117 More renaming 2018-11-15 15:20:41 +01:00
Guillaume Beraudo fcf470fc8d Introduce Instruction executors
Executors are use to render instructions.
They do not contain cod for building instructions.

Signed-off-by: Guillaume Beraudo <guillaume.beraudo@camptocamp.com>
2018-11-15 15:20:41 +01:00
Guillaume Beraudo ecf79a9ec2 First step in uncoupling replay creation and rendering
Signed-off-by: Guillaume Beraudo <guillaume.beraudo@camptocamp.com>
2018-11-15 15:20:41 +01:00
Tim Schaub edeb5d3e71 Remove unused getLayerRenderersByKey method 2018-11-15 12:36:31 +01:00
Tim Schaub 3f624ec0c0 Make map methods tolerant of layers without renderers 2018-11-15 12:35:54 +01:00
Frédéric Junod 7a472321c4 Merge pull request #8930 from fredj/better_export_example
Give the layers container a CSS class name
2018-11-14 16:24:12 +01:00
Frédéric Junod 4adcb5ae6c Merge pull request #8914 from fredj/layer_className
Add new className property to ol/layer/Base
2018-11-14 16:23:56 +01:00
Tim Schaub d6e8711172 Merge pull request #8922 from fgravin/layerrenderapi
Layer is reponsible for its renderer
2018-11-14 16:09:23 +01:00
Frederic Junod bdf98d9003 Give the layers container an CSS class name 2018-11-13 17:04:07 +01:00
ahocevar 30909ddbcd When rendering interim tiles, reuse existing replay groups 2018-11-13 16:08:49 +01:00
Frederic Junod 22eb96637f Add new className property to ol/layer/Base 2018-11-13 13:09:06 +01:00
Florent gravin c2c599a517 Layer is now responsible of its rendering 2018-11-13 12:51:04 +01:00
Frederic Junod 1e1dca5342 Remove unneeded type cast 2018-11-13 12:09:09 +01:00
Frederic Junod 5eed22286b Don't compute value more that once 2018-11-13 12:08:53 +01:00
Frederic Junod 09d87bf33d Remove unneeded 'relative' positioning 2018-11-13 11:36:45 +01:00
Florent gravin a6f94f865b Clear canvas in prepareFrame() 2018-11-12 21:51:39 +01:00
Florent gravin 697e475ee4 Add composite renderFrame() in IntermediateCanvas 2018-11-12 21:51:39 +01:00
Florent gravin 4c787c7f57 Set composite root div position relative 2018-11-12 21:51:39 +01:00
Tim Schaub 04077675e1 Merge pull request #8916 from tschaub/intermediate-context
Move canvas creation to intermediate canvas renderer constructor
2018-11-12 13:07:01 -07:00