Commit Graph

158 Commits

Author SHA1 Message Date
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
GaborFarkas c13d09ba23 Handle case of one segment lines with identical coordinates + quality improvements 2016-11-23 09:49:46 +01:00
GaborFarkas fb71860a03 Adding linestring cap support 2016-11-23 09:49:46 +01:00
GaborFarkas 350d1add81 Change goog.base to call, and goog.inherits to ol.inherits 2016-11-23 09:49:46 +01:00
GaborFarkas 0972988bdb Properly triangulate linestrings 2016-11-23 09:49:46 +01:00
GaborFarkas c7edd21cc3 Extend linestring renderer with GLSL and indexed geometries. 2016-11-23 09:49:46 +01:00
GaborFarkas caeb8e4820 Eliminating jitter by restructuring 2016-11-23 09:49:46 +01:00
GaborFarkas 6e958514ee Taking line width into account 2016-11-23 09:49:46 +01:00
GaborFarkas 628db9146d Creating a webgl.Replay struct, making the WebGL LineString renderer compilable 2016-11-23 09:49:46 +01:00
GaborFarkas f5978c659c Adding some defaults 2016-11-23 09:49:46 +01:00
GaborFarkas a6ddee0c5f Updating old code to current ol3 version 2016-11-23 09:49:46 +01:00
GaborFarkas a052b645df Fix dependencies 2016-11-23 09:49:46 +01:00
Guillaume Beraudo e40b545e40 Add basic WEBGL LineString rendering
Use gl.LINES and hardcode a width.
Implement polygon stroking using the line string replay.
2016-11-23 09:49:46 +01:00
Guillaume Beraudo 581ea8c775 Add color to WEBGL polygons 2016-11-23 09:49:46 +01:00
Guillaume Beraudo 2519cf36fc Basic WEBGL rendering of polygons 2016-11-23 09:49:46 +01:00
Andreas Hocevar d1e4b33760 Rename goog.DEBUG to ol.DEBUG 2016-08-31 21:10:01 +02:00
Frederic Junod d4ad9ad616 Add missing goog.require('ol') 2016-08-17 09:57:21 +02:00
Tim Schaub 9d276982b5 Assorted missing requires 2016-08-12 10:53:50 -06:00
Frederic Junod fbb585c5d8 Remove goog.addSingletonGetter function 2016-08-09 11:28:02 +02:00
Tim Schaub 3a1bbc4248 Get rid of ol.render.IReplayGroup interface 2016-08-08 09:58:12 -06:00
Tim Schaub 907a65ab83 Remove unused goog.require() calls in the source 2016-08-08 09:58:10 -06:00
Tim Schaub b47dc998a3 More WebGL name corrections 2016-08-07 10:49:12 -06:00
Tim Schaub 12e81e5487 Clean up WebGL provides 2016-08-07 10:49:12 -06:00
Tim Schaub 1b8310a6fe Rename ol/objectutil.js to ol/obj.js 2016-08-07 10:49:12 -06:00
Tim Schaub 6b883afa35 Move render files so they are named like their provides 2016-08-07 10:49:11 -06:00
Andreas Hocevar e18d41b5e0 Remove gratuitous debug assertions 2016-08-04 11:29:54 +02:00
Andreas Hocevar e0015b3d4e Use goog.DEBUG instead of ol.DEBUG for now 2016-08-04 11:29:54 +02:00
Andreas Hocevar 6f5ed17fc5 Remove goog.asserts.*
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Peter Robins f8f2cd11d5 Replace goog.getUid with ol.getUid 2016-07-20 11:01:00 +00:00
Peter Robins 0713e680e1 Replace goog.abstractMethod 2016-07-19 09:08:23 +00:00
Peter Robins 294a129083 Replace goog.webgl 2016-07-02 10:40:55 +00:00
Andreas Hocevar 3e928718f4 ol.vec.Mat4 improvements
* Rename ol.vec.Mat4.fromMatrix to ol.vec.Mat4.fromTransform
* Make result from ol.vec.Mat4.fromTransform immutable by adding result
  matrix as argument.
2016-06-23 15:52:25 +02:00
Andreas Hocevar 6b4ee42c90 Refactor to a more convenient internal API 2016-06-23 13:10:41 +02:00
Andreas Hocevar cf7ff841a7 Remove use of goog.vec.* 2016-06-23 13:10:41 +02:00
Frederic Junod e289bfbb7d Use ol.inherits instead of goog.inherits 2016-06-08 08:38:12 +02:00
Björn Harrtell 44e04be67f Get rid of goog.functions 2016-04-01 10:32:15 +02:00
Tim Schaub 0eb7e8220d Immediate rendering for all vector contexts 2016-03-18 17:31:14 -06:00
Tim Schaub 42c2dd8702 More geometry 2016-03-18 17:04:50 -06:00
Tim Schaub 51dfe89425 Add assert message 2016-03-18 17:04:49 -06:00
Tim Schaub d0b2016bb6 Add setStyle() to WebGL immediate API 2016-03-18 17:04:49 -06:00
Tim Schaub f77c7dded2 Add drawGeometry() to WebGL immediate API 2016-03-18 17:04:49 -06:00
Tim Schaub 88f8515fb6 Shorter names for drawing methods 2016-03-18 17:04:44 -06:00