Skip to content

Commit

Permalink
1.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
LayaBox committed Jul 1, 2016
1 parent e8a5cbd commit 8135e70
Show file tree
Hide file tree
Showing 461 changed files with 32,381 additions and 41,250 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,4 @@ ide/
utils/node_modules
utils/copy.bat
utils/debug.txt
LayaAirIDEMac.zip
9 changes: 5 additions & 4 deletions bin/as/libs/src/Config.as
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ package {
* Config 用于配置一些全局参数。
*/
public class Config {
/**
* 是否显示 log 信息。
*/
public static var showLog:Boolean = false;

/**
* WebGL模式下文本缓存最大数量。
Expand All @@ -34,5 +30,10 @@ package {
* 动画 Animation 的默认播放时间间隔,单位为毫秒。
*/
public static var animationInterval:int = 30;
/**
* 设置是否抗锯齿,只对2D(WebGL)、3D有效。
*/
public static var isAntialias:Boolean = false;

}
}
1 change: 0 additions & 1 deletion bin/as/libs/src/DataView.as
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*[IF-FLASH]*/package {
import flash.utils.ByteArray;
/**
* littleEndian和bigEndian在As内是用不到的,传入参数仅用于兼容JS
* @private
Expand Down
12 changes: 8 additions & 4 deletions bin/as/libs/src/Laya.as
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package {
import laya.asyn.Asyn;
import laya.asyn.Deferred;
import laya.display.Graphics;
import laya.display.Input;
import laya.display.css.Font;
import laya.display.css.Style;
Expand All @@ -13,10 +14,10 @@ package {
import laya.net.URL;
import laya.renders.Render;
import laya.renders.RenderSprite;
import laya.resource.Context;
import laya.resource.ResourceManager;
import laya.utils.Browser;
import laya.utils.Timer;
import laya.utils.RunDriver;

/**
* <code>Laya</code> 是全局对象的引用入口集。
Expand All @@ -32,7 +33,7 @@ package {
/** Render 类的引用。*/
public static var render:Render;
/** 引擎版本。*/
public static var version:String = "1.0.0RC2";
public static var version:String = "1.0.0Release";

/**
* 初始化引擎。
Expand All @@ -43,8 +44,11 @@ package {
*/
public static function init(width:Number, height:Number, ... plugins):* {
Browser.__init__();
Context.__init__();
Graphics.__init__();
timer = new Timer();
loader=new LoaderManager();
loader = new LoaderManager();
/*[IF-FLASH]*/width = Browser.clientWidth; height = Browser.clientHeight;

for (var i:int = 0, n:int = plugins.length; i < n; i++) {
if (plugins[i].enable) plugins[i].enable();
Expand All @@ -53,7 +57,7 @@ package {
Style.__init__();
ResourceManager.__init__();
stage = new Stage();

stage.model&&stage.model.setRootNode();
var location:* = Browser.window.location;
var pathName:String = location.pathname;
// 索引为2的字符如果是':'就是windows file协议
Expand Down
Loading

0 comments on commit 8135e70

Please sign in to comment.