mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
472906957a
- Extracted layers rendering logic from DrawingController to dedicated class - Turned RendererManager into Composite renderer (extends AbstractRenderer) - AbstractRenderer no longer contains a render(frame) method, implementing the render differs too much between my current renderers to impose a single signature, but I should improve this later if too much time on ma hands
21 lines
1.2 KiB
JavaScript
21 lines
1.2 KiB
JavaScript
(function () {
|
|
var ns = $.namespace('pskl.rendering');
|
|
|
|
ns.AbstractRenderer = function () {};
|
|
|
|
ns.AbstractRenderer.prototype.clear = function () {throw 'abstract method should be implemented';};
|
|
|
|
ns.AbstractRenderer.prototype.getCoordinates = function (x, y) {throw 'abstract method should be implemented';};
|
|
|
|
ns.AbstractRenderer.prototype.setGridEnabled = function (b) {throw 'abstract method should be implemented';};
|
|
ns.AbstractRenderer.prototype.isGridEnabled = function () {throw 'abstract method should be implemented';};
|
|
|
|
ns.AbstractRenderer.prototype.setZoom = function (zoom) {throw 'abstract method should be implemented';};
|
|
ns.AbstractRenderer.prototype.getZoom = function () {throw 'abstract method should be implemented';};
|
|
|
|
ns.AbstractRenderer.prototype.moveOffset = function (x, y) {throw 'abstract method should be implemented';};
|
|
ns.AbstractRenderer.prototype.getOffset = function () {throw 'abstract method should be implemented';};
|
|
|
|
ns.AbstractRenderer.prototype.setDisplaySize = function (w, h) {throw 'abstract method should be implemented';};
|
|
ns.AbstractRenderer.prototype.getDisplaySize = function () {throw 'abstract method should be implemented';};
|
|
})(); |