Olivier Guyot
2412fe0211
Webgl / remove handling of element_index_uint extension
...
From now on we will assume this extension is always enabled.
An error message have been added in the unlikely scenario of a lack
of support.
2019-06-05 14:46:15 +02:00
Frederic Junod
87d5f4c8bc
Use 'helper' from WebGLHelper in tests
2019-06-01 15:35:31 +02:00
Olivier Guyot
698816030e
Webgl points / fix unit tests
2019-06-01 15:33:36 +02:00
Olivier Guyot
532b8194b1
Webgl points / use the new typed-array based utils for buffers
...
`rebuildBuffer` is still a very CPU intensive task and is blocking the
main thread.
2019-06-01 15:20:04 +02:00
Olivier Guyot
eb912d95ca
Webgl / refactor utilities to work only on typed arrays
...
The base webgl renderer module now has two types of utilities:
* `writeXFeatureInstructions` will write a series of values in a given
typed array, which represent how a given feature will be rendered; for points,
this means position, size, color, etc.
* `writeXFeatureToBuffers` will fill up the given index & vertex buffers
with values based on the provided render instructions
As such, the logic for rendering features is:
user-input style > instructions array >(*) index/vertex buffers > draw
(*) this transformation is intended to be done on a worker.
2019-06-01 15:19:37 +02:00
Tim Schaub
deb00f20fe
Include full filename in import specifier
2019-05-29 08:51:10 -06:00
Olivier Guyot
e11e3c5f6e
Webgl / minor function renaming
2019-05-15 11:30:24 +02:00
Olivier Guyot
c705775d75
Linting
2019-05-15 10:20:31 +02:00
Olivier Guyot
75eb62363a
WebGL points / rebuild buffers only when extent changed
2019-05-15 10:18:47 +02:00
Olivier Guyot
523097903a
WebGL points / rebuild buffers on every non animation frame
2019-05-15 10:18:22 +02:00
Olivier Guyot
c6d214b585
Webgl / implement support for custom attributes in webgl buffers
...
Only numerical attributes can be pushed in webgl buffers.
2019-05-15 10:15:55 +02:00
Olivier Guyot
3a429d3f6c
Webgl / add utils for pushing geojson geometries in webgl buffers
...
For now only point geometries are handled.
2019-05-15 09:44:41 +02:00
Olivier Guyot
5e36468245
Webgl / add a simple Layer renderer for common logic
...
This will eventually provides utilities for manipulating & rendering data
2019-05-15 09:43:29 +02:00
Olivier Guyot
a2d83f5358
WebGL points / add minimal tests
2019-05-15 09:42:15 +02:00
Olivier Guyot
72cf7b13fa
removed existing webgl rendering unit tests
2018-11-16 14:05:04 +01:00
Marc Jansen
183b8e29c4
Named exports from ol/transform
2018-02-15 17:55:54 +01:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
d75623084e
Rename _ol_source_Image_ to ImageSource
2018-01-10 09:36:28 -07:00
Tim Schaub
453b79dad7
Rename _ol_layer_Image_ to ImageLayer
2018-01-10 09:36:28 -07:00
Tim Schaub
12a3b99b09
Rename _ol_renderer_webgl_ImageLayer_ to WebGLImageLayerRenderer
2018-01-10 09:35:42 -07:00
Ron Young
9fa59d0735
rename map in tests
2017-12-21 23:11:42 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Tim Schaub
a3e3e99baa
Get rid of useless test exports
2017-08-17 15:16:58 -04:00
Tim Schaub
9415899a03
Add common transforms by default
2017-03-27 10:07:00 -06:00
Tim Schaub
ed5dbd1293
Put test requires on top
2016-08-08 09:58:11 -06:00
Tim Schaub
424f3e5577
Move renderer files so they are named like their provides
2016-08-07 10:49:11 -06: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
Tim Schaub
ae4d8195c0
Remove use of goog.dispose()
2016-03-02 15:44:06 -07:00
Éric Lemoine
9ce3bc7f3d
Fix WebGL image layer rendering on retina displays
...
This commit takes the device pixel ratio into account when calculating the matrix used to apply the image to the output canvas.
2015-04-07 12:13:16 +02:00
Frederic Junod
38bbe35e8d
Remove ol.Map#getRenderer function
2013-11-20 11:45:24 +01:00
Tim Schaub
b192335e56
Merge pull request #1027 from tschaub/closure-util
...
Use the closure-util package. Documentation will come when this is a more complete solution. See #1027 for basic usage instructions.
2013-09-15 15:36:13 -07:00
Éric Lemoine
009172951c
WebGL image layer tests require the common proj
2013-09-15 10:37:22 -06:00
Tim Schaub
e806f51b3d
Changing extent structure back to single array: [minX, minY, maxX, maxY]
...
This means we'll have to have a new structure and new methods for 3D envelopes.
2013-09-15 00:31:32 -06:00
Tim Schaub
e84e0e1233
WebGL renderer updates for new extent structure
2013-09-14 21:14:55 -06:00
Tom Payne
7d5a84ce8a
Rename ol.layer.ImageLayer to ol.layer.Image
2013-09-09 14:36:40 +02:00
Tom Payne
5967f96047
Rename ol.source.ImageSource to ol.source.Image
2013-09-09 14:33:12 +02:00
Tom Payne
f64e35e8bb
Remove unused variables in renderers
2013-05-28 16:01:33 +02:00
Tom Payne
e686eff886
Fix use of dispose in ol.renderer.webgl.ImageLayer tests
2013-04-22 17:16:44 +02:00
Tom Payne
305089d84f
Port ol.renderer.webgl to new extents
2013-04-19 10:03:35 +02:00
Tom Payne
9f0004e17d
Rename test files to match source files
2013-04-16 19:59:53 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Tim Schaub
ff28c0b793
Fix global leak in WebGL image layer test
2013-03-23 04:38:12 -06:00
Tim Schaub
27ccd13e48
Create test specific markup in tests
...
Instead of relying on a shared dom structure, the tests should create (and destroy) elements as needed.
2013-03-18 22:53:04 -06:00
Bruno Binet
9b1c389c80
Remove unused goog.require directives
2013-03-14 11:39:43 +01:00
Tobias Bieniek
89ab68cde7
Replaced jasmine testing framework by mocha, expect.js and sinon
...
as discussed in #319
2013-03-13 04:32:43 +01:00
Tom Payne
2741daa977
Merge pull request #265 from twpayne/check-requires-in-specs
...
Check requires in specs
2013-03-04 11:31:37 -08:00
Tom Payne
df5f74b3c0
Add missing requires to specs
2013-03-04 20:02:55 +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
be6c1a1a27
Test the image layer renderer's transform matrix
2013-02-17 22:47:19 +01:00