[]WebGL 绘制图形报错
								问题是WebGLContext2D的fillRect报错
代码如下:
Laya.init(1136, 640, WebGL );
var mask :Sprite = new Sprite();
mask.graphics.save();
mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 );
mask.graphics.restore();
mask.x = 0;
mask.y = 0;
Laya.stage.addChild( mask );
麻烦看下是什么问题。
 
																
																																
															
														代码如下:
Laya.init(1136, 640, WebGL );
var mask :Sprite = new Sprite();
mask.graphics.save();
mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 );
mask.graphics.restore();
mask.x = 0;
mask.y = 0;
Laya.stage.addChild( mask );
麻烦看下是什么问题。
没有找到相关结果
									已邀请:
																	
							要回复问题请先登录


 
1 个回复
cuixueying
赞同来自: