openfl
Version:
A fast, productive library for 2D cross-platform development.
49 lines (32 loc) • 1.24 kB
JavaScript
// Class: openfl.display._internal.stats.DrawCallCounter
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 $hxEnums = require("./../../../../hxEnums_stub").default;
// Constructor
var DrawCallCounter = function() {
this.drawCallsCounter = 0;
this.currentDrawCallsNum = 0;
this.currentDrawCallsNum = 0;
this.drawCallsCounter = 0;
}
// Meta
DrawCallCounter.__name__ = "openfl.display._internal.stats.DrawCallCounter";
DrawCallCounter.__isInterface__ = false;
DrawCallCounter.prototype = {
increment: function() {
this.drawCallsCounter++;
},
reset: function() {
this.currentDrawCallsNum = this.drawCallsCounter;
this.drawCallsCounter = 0;
}
};
DrawCallCounter.prototype.__class__ = DrawCallCounter.prototype.constructor = $hxClasses["openfl.display._internal.stats.DrawCallCounter"] = DrawCallCounter;
// Init
// Statics
DrawCallCounter.__meta__ = { obj : { SuppressWarnings : ["checkstyle:FieldDocComment"]}}
// Export
exports.default = DrawCallCounter;