/** * Creates a new TiledLayer. * * @param tileSize size of an individual tile * @param color the modulation color * @param texturePath resource path of the texture */ public TiledLayer(IVector2 tileSize, Object color, String texturePath) { super(Layer.LAYER_TYPE_TILED, color); this.tileSize_ = tileSize.copy(); //this.modColor_ = color==null? Color.WHITE: color; this.invTileSize_ = (new Vector2Double(1.0)).divide(tileSize_); this.texturePath_ = texturePath; //texture_ = 0; }