This is to abstract away Web / Browser specific APIs in a Platform layer. By default Lightning 3 will load the Web platform as that's our most common usecase.
However this PR opens up the possibility for other platforms/runtimes to run Lightning 3, just like Lightning 2 has.
Lightning 3 now exposes a CorePlatform and CoreGlContext on which the platform specific APIs are abstracted. By default the project comes with a WebPlatform and a WebGlContext implementation for browsers.
This is to abstract away Web / Browser specific APIs in a Platform layer. By default Lightning 3 will load the Web platform as that's our most common usecase.
However this PR opens up the possibility for other platforms/runtimes to run Lightning 3, just like Lightning 2 has.
Lightning 3 now exposes a
CorePlatform
andCoreGlContext
on which the platform specific APIs are abstracted. By default the project comes with aWebPlatform
and aWebGlContext
implementation for browsers.