20 lines
336 B
JavaScript
20 lines
336 B
JavaScript
goog.provide('ol.webgl');
|
|
goog.provide('ol.webgl.WebGLContextEventType');
|
|
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
ol.webgl.WebGLContextEventType = {
|
|
LOST: 'webglcontextlost',
|
|
RESTORED: 'webglcontextrestored'
|
|
};
|
|
|
|
|
|
/**
|
|
* @return {boolean} Is supported.
|
|
*/
|
|
ol.webgl.isSupported = function() {
|
|
return 'WebGLRenderingContext' in goog.global;
|
|
};
|