Commit Graph

743 Commits

Author SHA1 Message Date
GaborFarkas dd905ffb5b Cleanup and fix DPR in WebGL CircleReplay 2016-11-23 09:51:37 +01:00
GaborFarkas a7ddda7d81 Force close polygon contours (WebGL) 2016-11-23 09:51:37 +01:00
GaborFarkas ca1414b2d0 Add depth test to PolygonReplay 2016-11-23 09:51:37 +01:00
GaborFarkas 0c45b52a7a Add functions to WebGL Immediate API 2016-11-23 09:51:37 +01:00
GaborFarkas 62fb8d8fd8 Fix typos 2016-11-23 09:51:37 +01:00
GaborFarkas 36df9a9c09 Add missing requires 2016-11-23 09:51:37 +01:00
GaborFarkas 763bbca549 Fix skipping replay 2016-11-23 09:51:37 +01:00
GaborFarkas 697cbf16f0 Fix some rendering issues with complex styling 2016-11-23 09:51:37 +01:00
GaborFarkas 58afee6706 Clean up polygon replay GLSL 2016-11-23 09:51:37 +01:00
GaborFarkas ac6408be3b Add circle replay to WebGL renderer 2016-11-23 09:51:36 +01:00
GaborFarkas 86c914f3df Fix glitched lines with rotated view 2016-11-23 09:51:36 +01:00
GaborFarkas 5fb0a84579 Fix WebGL PolygonReplay#bridgeHole_ 2016-11-23 09:51:36 +01:00
GaborFarkas e124b34b24 Correctly draw polygons with transparent border 2016-11-23 09:51:36 +01:00
GaborFarkas 004c0f7e27 Fix WebGL PolygonReplay#getPointsInTriangle_ 2016-11-23 09:51:36 +01:00
GaborFarkas 71d790ccfd Add zIndex support to WebGL renderer 2016-11-23 09:51:36 +01:00
GaborFarkas 5cf2e9c072 Add shutdown methods to replays 2016-11-23 09:51:36 +01:00
GaborFarkas 360e77481d Restructure webgl replays 2016-11-23 09:51:36 +01:00
GaborFarkas dc27f768d0 Correctly triangulate simple polygons. 2016-11-23 09:51:36 +01:00
GaborFarkas a0089b5126 Correctly triangulate bad polygons. 2016-11-23 09:51:36 +01:00
GaborFarkas 657f2c7b6c Optimize processing flat coordinates 2016-11-23 09:51:36 +01:00
GaborFarkas 5d65028d26 Initial ear clipping algorithm 2016-11-23 09:51:33 +01:00
GaborFarkas 88f7e7a38d Utilities for polygon renderer 2016-11-23 09:49:48 +01:00
GaborFarkas 18bc820f8b Prevent overdraw in PolygonReplay. 2016-11-23 09:49:48 +01:00
GaborFarkas 4b2fb38954 Fix preparation of multipolygons with holes. 2016-11-23 09:49:48 +01:00
GaborFarkas 226bf5a9ea Allow empty fillStyle for polygons. 2016-11-23 09:49:48 +01:00
GaborFarkas 16a50ee0c7 Extend PolygonReplay with hit detection and skipping. 2016-11-23 09:49:48 +01:00
GaborFarkas ce3b286cd3 RTE correct only once. 2016-11-23 09:49:48 +01:00
GaborFarkas 112fae228a Sanity check fill colors. 2016-11-23 09:49:48 +01:00
GaborFarkas 18cf6c30bd Add basic polygon renderer. 2016-11-23 09:49:48 +01:00
GaborFarkas 638b7752fa Fix bugs in LineStringReplay. 2016-11-23 09:49:47 +01:00
GaborFarkas f96a4a7301 Properly handle zeros in stroke style. 2016-11-23 09:49:47 +01:00
GaborFarkas 1c7203a203 Add skipping capability to LineStringReplay 2016-11-23 09:49:47 +01:00
GaborFarkas 48d3bfe297 Take line width into account when forming miters. 2016-11-23 09:49:47 +01:00
GaborFarkas 16dfc5dfba Adjust replays to new version. 2016-11-23 09:49:47 +01:00
GaborFarkas 2415050500 Add hit detection support to LineStringReplay
Also, making it more consistent with ImageReplay
2016-11-23 09:49:47 +01:00
GaborFarkas b7396b0b94 Improve code quality
Cleaning up, making the code more consistent, and restructuring commonly used methods.
2016-11-23 09:49:47 +01:00
GaborFarkas 3897312af6 Add full support to different styles in one layer. 2016-11-23 09:49:47 +01:00
GaborFarkas 4d8777220a Fix compiler and compiled lib related problems. 2016-11-23 09:49:47 +01:00
GaborFarkas b0d11391b2 Fix rounding problems
Fragment shader does not know about the projection matrix, thus it has to take the pixel ratio into account.
2016-11-23 09:49:47 +01:00
GaborFarkas 249084dcd4 Eliminate overdraw with a nice little trick 2016-11-23 09:49:47 +01:00
GaborFarkas c9c970303f Handling sharp angles in linestring GLSL 2016-11-23 09:49:47 +01:00
GaborFarkas 3f828248b9 Rework isClosed with added tests 2016-11-23 09:49:47 +01:00
GaborFarkas e64549c50c Fix weird behaviour of boundaries
With drawElements, it seems like we cannot connect an old index with a much fresher one, as it will produce weird errors.
2016-11-23 09:49:47 +01:00
GaborFarkas 4be8de62ae Refactor linestring geom validation
Now it only focuses on issues not addressed by ol.geom.flat.simplify methods.
2016-11-23 09:49:47 +01:00
GaborFarkas f15a9652d8 Fix rendering of boundaries. 2016-11-23 09:49:47 +01:00
GaborFarkas eba006b796 Falling back to bevel when exceeding miterLimit 2016-11-23 09:49:47 +01:00
GaborFarkas 8c561a45b9 Inspect linestring validity before drawing 2016-11-23 09:49:46 +01:00
GaborFarkas 99e4009b19 Minor improvements
ol.render.webgl.LineStringReplay.startIndices_ is initialized with a 0, and the end index of a valid line is added in every valid iteration.

drawElements_ is refactored for a clearer code.
2016-11-23 09:49:46 +01:00
GaborFarkas e2ec6d0b82 Adding support for closed lines 2016-11-23 09:49:46 +01:00
GaborFarkas 0f8e1a7e40 Refactoring ol.render.webgl.LineStringReplay 2016-11-23 09:49:46 +01:00