OpenDroneMap-WebODM/app/static/app/js/vendor/osgjs/osg/GLObject.js

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;