大约有 248 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0031 秒)
...下 var carpos = Car.bodies[1].position; var canvas = render.canvas; var context = render.context; var world = {minX: -globalWidth, maxX: globalWidth, minY: -globalHeight, maxY: globalWidth}; context.setTransform(1,0,0,1,0,0); context.clearRect(0, 0, canvas.width, canvas.height); //Clamp the camera ...
来源: Laya_社区 发布时间: 20170728
...ender _customRequestAnimationFrame _loopFunction is3DMode Accessors canvas context customRenderEngine Methods initRender customRequestAnimationFrame vsyncTime Constructors constructor new Render(width: number, height: number, mainCanv: HTMLCanvas): Render Defined in laya/renders/Render.ts:59 初始...
来源: Laya3.0_api 发布时间: 20231115
...ring Default value subshaderIndex: number = 0 Returns void _render _render(context: IRenderContext3D): void Overrides RenderElement._render Defined in laya/d3/core/render/SkinRenderElement.ts:36 Parameters context: IRenderContext3D Returns void _renderUpdatePre _renderUpdatePre(context: RenderContex...
来源: Laya3.0_api 发布时间: 20231102
... subshaderIndex: number = 0 Returns void _renderUpdatePre _renderUpdatePre(context: RenderContext3D): void Defined in laya/d3/core/render/RenderElement.ts:225 pre update data Parameters context: RenderContext3D Returns void compileShader compileShader(context: IRenderContext3D): void Defined in laya...
来源: Laya3.0_api 发布时间: 20231115
... subshaderIndex: number = 0 Returns void _renderUpdatePre _renderUpdatePre(context: RenderContext3D): void Overrides RenderElement._renderUpdatePre Defined in laya/d3/core/render/InstanceRenderElement.ts:101 Parameters context: RenderContext3D Returns void clear clear(): void Defined in laya/d3/core...
来源: Laya3.0_api 发布时间: 20231115
...交渲染的,SubmitTexture对drawcall是有优化的,它会通过WebGLContext2D里的字段_renderKey(一个私有字段到处全局赋值也是醉了),去检查当前待渲染贴图和上一张贴图是否符合优化条件,去决定是否在一个Submit里塞上多份绘制数据 ; ...
来源: Laya_社区 发布时间: 20190628
...果出错 FrustumCulling._traversalCulling=function(camera,scene,context,renderList){ var validCount=renderList.length; var renders=renderList.elements; var boundFrustum=camera.boundFrustum; var camPos=camera._transform.position...
来源: Laya_社区 发布时间: 20190711
... subshaderIndex: number = 0 Returns void _renderUpdatePre _renderUpdatePre(context: RenderContext3D): void Inherited from RenderElement._renderUpdatePre Defined in laya/d3/core/render/RenderElement.ts:219 Parameters context: RenderContext3D Returns void compileShader compileShader(context: IRenderCo...
来源: Laya3.0_api 发布时间: 20231102
...如何使用canvas 我是这么用的 var canvas = Laya.Render.canvas; var context = canvas.getContext('2d'); context.fillStyle = "#FF0000"; context.fillRect(10,10,100,100); 运行后没有报错,输出canvas和context都有值,但是绘制不生效,请问该如何使用canvas 2018-08-03 添...
来源: Laya_社区 发布时间: 20180803
...DrawMeshInstancedCMD Index Constructors constructor Methods recover run setContext Constructors constructor new Command(): Command Defined in laya/d3/core/render/command/Command.ts:43 创建一个 Command 实例。 Returns Command Methods recover recover(): void Defined in laya/d3/core/render/comman...
来源: Laya3.0_api 发布时间: 20231115