// Class: openfl.display3D.textures.RectangleTexture

var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this

$global.Object.defineProperty(exports, "__esModule", {value: true});

var __map_reserved = {};

// Imports

var $hxClasses = require("./../../../hxClasses_stub").default;
var $import = require("./../../../import_stub").default;
var $extend = require("./../../../extend_stub").default;
function openfl_display3D_textures_TextureBase() {return require("./../../../openfl/display3D/textures/TextureBase");}
function openfl__$internal_stage3D_opengl_GLRectangleTexture() {return require("./../../../openfl/_internal/stage3D/opengl/GLRectangleTexture");}

// Constructor

var RectangleTexture = function(context,width,height,format,optimizeForRenderToTexture) {
	(openfl_display3D_textures_TextureBase().default).call(this,context);
	this.__width = width;
	this.__height = height;
	this.__optimizeForRenderToTexture = optimizeForRenderToTexture;
	(openfl__$internal_stage3D_opengl_GLRectangleTexture().default).create(this,this.__context.__renderer);
}

// Meta

RectangleTexture.__name__ = ["openfl","display3D","textures","RectangleTexture"];
RectangleTexture.__super__ = (openfl_display3D_textures_TextureBase().default);
RectangleTexture.prototype = $extend((openfl_display3D_textures_TextureBase().default).prototype, {
	uploadFromBitmapData: function(source) {
		(openfl__$internal_stage3D_opengl_GLRectangleTexture().default).uploadFromBitmapData(this,this.__context.__renderer,source);
	},
	uploadFromByteArray: function(data,byteArrayOffset) {
		(openfl__$internal_stage3D_opengl_GLRectangleTexture().default).uploadFromByteArray(this,this.__context.__renderer,data,byteArrayOffset);
	},
	uploadFromTypedArray: function(data) {
		(openfl__$internal_stage3D_opengl_GLRectangleTexture().default).uploadFromTypedArray(this,this.__context.__renderer,data);
	},
	__setSamplerState: function(state) {
		(openfl__$internal_stage3D_opengl_GLRectangleTexture().default).setSamplerState(this,this.__context.__renderer,state);
	}
});
RectangleTexture.prototype.__class__ = $hxClasses["openfl.display3D.textures.RectangleTexture"] = RectangleTexture;

// Init



// Statics




// Export

exports.default = RectangleTexture;