你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
发现
话题
全文搜索
登录
[]RenderTarget2D的create方法
问下laya引擎18_beta RenderTarget2D这里
是t.depthStencilFormat?
没有找到相关结果
已邀请:
与内容相关的链接
提交
1 个回复
w1114367261
赞同来自:
public static function create(w:int, h:int, surfaceFormat:int = WebGLContext.RGBA, surfaceType:int = WebGLContext.UNSIGNED_BYTE, depthStencilFormat:int = WebGLContext.DEPTH_STENCIL, mipMap:Boolean = false, repeat:Boolean = false, minFifter:int = -1, magFifter:int = -1):RenderTarget2D {
var t:RenderTarget2D = POOL.pop();
t || (t = new RenderTarget2D(w, h));
if (!t.bitmap || t._w != w || t._h != h || t._surfaceFormat != surfaceFormat || t._surfaceType != surfaceType || t._depthStencilFormat != depthStencilFormat || t._mipMap != mipMap || t._repeat != repeat || t._minFifter != minFifter || t._magFifter != magFifter) {
t._w = w;
t._h = h;
t._surfaceFormat = surfaceFormat;
t._surfaceType = surfaceType;
t._depthStencilFormat = depthStencilFormat;
t._mipMap = mipMap;
t._repeat = repeat;
t._minFifter = minFifter;
t._magFifter = magFifter;
t.release();
t._createWebGLRenderTarget();
}
return t;
要回复问题请先
登录
发起人
L123456
相关问题
两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里
请问有没有方法能够获取“鼠标是否处于按下状态”?
FD 宏编译时 出现 试图访问该方法时失败
LayaNative ios上js访问不到JSBridge类中的方法,请求官方帮助,
[闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃
protobuf.js 转小游戏 动态生成方法报错
对于使用spine切换动作后显示异常解决方法
LAYA转换后,MovieClip的gotoAndStop方法会使子MovieClip偶尔显示不出图片
需要用SoundChannel的play()方法,报错说不存在play()方法?
Animation对象的clear方法是否会把Animation的对象清空?
laya3.0 跪求怎么调用第三方JS 方法
问题状态
最新活动:
2018-05-08 20:36
浏览:
2090
关注:
2
人
商务合作
1 个回复
w1114367261
赞同来自:
var t:RenderTarget2D = POOL.pop();
t || (t = new RenderTarget2D(w, h));
if (!t.bitmap || t._w != w || t._h != h || t._surfaceFormat != surfaceFormat || t._surfaceType != surfaceType || t._depthStencilFormat != depthStencilFormat || t._mipMap != mipMap || t._repeat != repeat || t._minFifter != minFifter || t._magFifter != magFifter) {
t._w = w;
t._h = h;
t._surfaceFormat = surfaceFormat;
t._surfaceType = surfaceType;
t._depthStencilFormat = depthStencilFormat;
t._mipMap = mipMap;
t._repeat = repeat;
t._minFifter = minFifter;
t._magFifter = magFifter;
t.release();
t._createWebGLRenderTarget();
}
return t;