OSDN Git Service

- instance 化した defineTag を FlappObject として処理
[flapp/flapp.git] / src / shape.js
1 goog.provide('FlappShape');
2
3 goog.scope(function() {
4
5 /**
6  * @constructor
7  */
8 FlappShape = function(matrix, colorTransform) {
9     this.OBJECT_TYPE = 1; // 1:Shape, 2:MovieClip
10     this.name = null;
11     this.matrix = matrix;
12     this.colorTransform = colorTransform;
13     this.canvas = document.createElement('canvas');
14     this.canvas.width = 240; // XXX
15     this.canvas.height = 240; // XXX
16     this.renderCode = "";
17 };
18
19 FlappShape.prototype = {
20     loadShapeTag: function(shape) {
21         ;
22     },
23     render: function(canvas) {
24         
25     },
26     destroy: function(canvas) {
27         ;
28     }
29 };
30
31
32 FlappShape.shapetoRenderCode = function(shapeTag) {
33     ;
34 };
35
36 });