com.jme3.texture.FrameBuffer.setUpdateNeeded()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中com.jme3.texture.FrameBuffer.setUpdateNeeded()方法的一些代码示例,展示了FrameBuffer.setUpdateNeeded()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FrameBuffer.setUpdateNeeded()方法的具体详情如下:
包路径:com.jme3.texture.FrameBuffer
类名称:FrameBuffer
方法名:setUpdateNeeded

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();
}

相关文章