Commit Graph

48 Commits

Author SHA1 Message Date
Frederic Junod 7c15280e81 Remove use of goog.partial
Use Function.prototype.bind instead, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Partially_applied_functions_(currying)
2016-05-02 14:52:09 +02:00
Frederic Junod 17b667d6e0 Add missing type casts for goog.partial 2016-02-22 10:02:15 +01:00
Tim Schaub 13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00
Tim Schaub 3cf8618fc7 Prefer single line assignment to 80 character limit 2016-01-11 18:56:08 -08:00
Marc Jansen 138adf0509 Remove goog.isNull in renderer classes 2015-10-01 09:17:14 +02:00
Tim Schaub d6f03697d7 Remove hue, saturation, contrast, and brightness 2015-09-27 13:16:30 -06:00
Tim Schaub 36e336f406 Inline !goog.isDef() calls for properties 2015-09-27 10:37:20 -06:00
Frederic Junod 49b8f90e66 Add missing goog.provide
The new version of the closure-compiler (version 20150729) wants that all the classes
tagged with `@constructor` to be provided (with `goog.provide`).
2015-08-25 09:26:10 +02:00
Andreas Hocevar 53d5d8c1d9 Get rid of ol.FeatureOverlay
This also introduces a wrapX option to the Draw, Modify and Select
interaction.
2015-06-09 15:44:31 +02:00
Tim Schaub 33c197cf16 Layer renderers should not require a map renderer 2015-02-08 07:25:10 -07:00
tsauerwein 974823dbd4 Refactor createTexture 2015-01-08 15:40:03 +01:00
Éric Lemoine 57db47ac18 Rename ol.structs.Buffer to ol.webgl.Buffer
The Buffer class is WebGL specific, and it's not really a "data structure", in the pure sense of the term.
2014-11-21 15:48:31 +01:00
Guillaume Beraudo 20ceae2655 Webgl immediate implementation for points
Internally uses a replay group to share code.

Modifies the dynamic data example to use PointGeometry
and Feature in addition to MultiPoint.
2014-11-20 13:53:00 +01:00
Éric Lemoine 33adcd3903 Add very basic webgl vector renderer 2014-10-27 09:18:19 +01:00
Éric Lemoine 49a1215f75 Pass a replay group to ol.render.Event 2014-06-14 14:21:34 +02:00
Andreas Hocevar eb6a938062 Do not document object literals as interfaces
Instead, object literals with properties that should not be
renamed can go in externs/olx.js.
2014-05-22 15:48:47 +02:00
Tom Payne 022a7a03e0 Use oli.FrameState instead of ol.FrameState 2014-03-10 14:48:23 +01:00
Tom Payne 4667dec7c3 Rename devicePixelRatio to pixelRatio in ol.FrameState 2014-01-15 09:46:27 +01:00
Antoine Abt 2ebfba2235 add Immediate renderer to webgl layer postcompose event 2014-01-03 16:38:25 +01:00
Éric Lemoine 93aef958e9 Move arrayBuffer_ to layer renderer 2013-11-20 11:45:25 +01:00
Éric Lemoine 8d191ca4b8 Fire pre and postcompose events from webgl layers 2013-11-20 11:45:25 +01:00
Tom Payne e1ba9c0322 Move color matrix code into ol.color.Matrix 2013-11-20 11:44:48 +01:00
Tom Payne d7591331ba Add and use ol.renderer.webgl.Layer#composeFrame 2013-11-20 11:34:50 +01:00
Tom Payne 06b1456499 Improve type checking in ol.renderer.webgl.Layer 2013-11-20 11:13:47 +01:00
Bruno Binet 8b435059f7 Update color matrices based on framestate values
In getColorMatrix method, we'll update the color matrices only if layerstate
color properties has changed in the framestate.
2013-08-13 16:24:44 +02:00
Bruno Binet 46ea218d0f Make layer renderers more stupid
Layer renderers should not be responsible for listening to layer
properties change and triggering a render.
Layer change events are now forwarded to the map which will trigger a render.
2013-08-13 16:24:44 +02:00
Tom Payne f64e35e8bb Remove unused variables in renderers 2013-05-28 16:01:33 +02:00
Tom Payne 85a95a0036 Call render and requestRenderFrame directly instead of using changed events 2013-04-18 18:58:59 +02:00
Tom Payne f274cc99f6 Don't call event handlers in constructor 2013-04-18 16:35:06 +02:00
Tom Payne 0371b891a6 Tighten up permission on layer renderers 2013-04-12 00:48:35 +02:00
Tom Payne 4be8c991f7 Add missing Closure Library requires 2013-04-06 14:28:12 +02:00
Tom Payne 66efba8824 Promote projectionMatrix and texCoordMatrix into base class 2013-03-22 17:25:53 +01:00
Tom Payne cc41d720fa Manage buffers in WebGL map renderer 2013-03-22 17:25:47 +01:00
Tom Payne ecd5158012 Add ol.renderer.webgl.Layer.getWebGLMapRenderer
This improves the type checking.
2013-03-22 17:25:42 +01:00
Tom Payne 6c32170a08 Promote texture and framebuffer management into base class 2013-03-22 17:25:27 +01:00
Tom Payne 08dbeed23f Rename WebGL variables to match CSS shaders specification
See https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.htm
2013-03-04 19:45:43 +01:00
Éric Lemoine 02843939e3 Add ol.renderer.webgl.ImageLayer 2013-02-14 23:36:36 +01:00
Éric Lemoine de7a1d8f81 Apply transform matrix to text coords
With this commit the transform matrix is applied to each texture coordinate, as opposed to each fragment. This leads to less calculation on the GPU.
2013-02-14 09:56:45 +01:00
Tom Payne 3bd1b92b05 Promote renderFrame from ol.renderer.*.LayerRender to ol.renderer.LayerRenderer 2013-01-28 19:56:57 +01:00
Tom Payne 49734de240 Promote dispatchChangeEvent from ol.renderer.webgl.Layer to ol.renderer.Layer 2013-01-28 19:56:56 +01:00
Tom Payne 4701d117f7 Always dispatch change events on load/opacity/visible changes 2013-01-28 19:56:56 +01:00
Tom Payne f3cace499c Implement frame state and animation architecture 2013-01-11 15:48:24 +01:00
Tom Payne e05591f6ab Fix typecast in ol.renderer.webgl.Layer 2013-01-07 13:18:59 +01:00
Tom Payne cfaee15c9f Factor out color matrix generation, move color matrix into layer renderer 2013-01-05 12:30:18 +01:00
Tom Payne 118b233457 More strict matrix type 2013-01-05 12:17:37 +01:00
Tom Payne 756792b8db Pass time to render functions and rename them to renderFrame_ 2013-01-03 12:23:50 +01:00
Tom Payne 783dfe0618 Port WebGL renderer to requestRenderFrame 2013-01-03 12:23:49 +01:00
Tom Payne e5d39724c9 Give each source file a unique name 2012-10-26 11:25:26 +02:00