本文整理了Java中com.jme3.texture.FrameBuffer.setUpdateNeeded()
方法的一些代码示例,展示了FrameBuffer.setUpdateNeeded()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FrameBuffer.setUpdateNeeded()
方法的具体详情如下:
包路径:com.jme3.texture.FrameBuffer
类名称:FrameBuffer
方法名:setUpdateNeeded
暂无
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* If MRT is not enabled ({@link FrameBuffer#setMultiTarget(boolean) } is false)
* then this specifies the color target to which the scene should be rendered.
* <p>
* By default the value is 0.
*
* @param index The color attachment index.
* @throws IllegalArgumentException If index is negative or doesn't map
* to any attachment on this framebuffer.
*/
public void setTargetIndex(int index){
if (index < 0 || index >= 16)
throw new IllegalArgumentException("Target index must be between 0 and 16");
if (colorBufs.size() < index)
throw new IllegalArgumentException("The target at " + index + " is not set!");
colorBufIndex = index;
setUpdateNeeded();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public void resetObject() {
this.id = -1;
for (int i = 0; i < colorBufs.size(); i++) {
colorBufs.get(i).resetObject();
}
if (depthBuf != null)
depthBuf.resetObject();
setUpdateNeeded();
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
/**
* If MRT is not enabled ({@link FrameBuffer#setMultiTarget(boolean) } is false)
* then this specifies the color target to which the scene should be rendered.
* <p>
* By default the value is 0.
*
* @param index The color attachment index.
* @throws IllegalArgumentException If index is negative or doesn't map
* to any attachment on this framebuffer.
*/
public void setTargetIndex(int index){
if (index < 0 || index >= 16)
throw new IllegalArgumentException("Target index must be between 0 and 16");
if (colorBufs.size() < index)
throw new IllegalArgumentException("The target at " + index + " is not set!");
colorBufIndex = index;
setUpdateNeeded();
}
代码示例来源:origin: info.projectkyoto/mms-engine
@Override
public void resetObject() {
this.id = -1;
for (int i = 0; i < colorBufs.size(); i++) {
colorBufs.get(i).resetObject();
}
if (depthBuf != null)
depthBuf.resetObject();
setUpdateNeeded();
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
@Override
public void resetObject() {
this.id = -1;
for (int i = 0; i < colorBufs.size(); i++) {
colorBufs.get(i).resetObject();
}
if (depthBuf != null)
depthBuf.resetObject();
setUpdateNeeded();
}
内容来源于网络,如有侵权,请联系作者删除!