kopia lustrzana https://github.com/OpenDroneMap/WebODM
20 wiersze
452 B
JavaScript
20 wiersze
452 B
JavaScript
'use strict';
|
|
|
|
// Base class for GLResources: Textures, Buffers, Programs, Shaders, FrameBuffers and RenderBuffers
|
|
// It holds a reference to the graphic context that is needed for resource deletion
|
|
|
|
var GLObject = function () {
|
|
this._gl = undefined;
|
|
};
|
|
|
|
GLObject.prototype = {
|
|
setGraphicContext: function ( gl ) {
|
|
this._gl = gl;
|
|
},
|
|
getGraphicContext: function () {
|
|
return this._gl;
|
|
}
|
|
};
|
|
|
|
module.exports = GLObject;
|