本文整理了Java中com.jme3.texture.FrameBuffer.clearColorTargets()
方法的一些代码示例,展示了FrameBuffer.clearColorTargets()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FrameBuffer.clearColorTargets()
方法的具体详情如下:
包路径:com.jme3.texture.FrameBuffer
类名称:FrameBuffer
方法名:clearColorTargets
[英]Clears all color targets that were set or added previously.
[中]清除以前设置或添加的所有颜色目标。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* Set the color texture to use for this framebuffer.
* This automatically clears all existing textures added previously
* with {@link FrameBuffer#addColorTexture } and adds this texture as the
* only target.
*
* @param tex The color texture to set.
*/
public void setColorTexture(Texture2D tex){
clearColorTargets();
addColorTexture(tex);
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* Set the color texture array to use for this framebuffer.
* This automatically clears all existing textures added previously
* with {@link FrameBuffer#addColorTexture } and adds this texture as the
* only target.
*
* @param tex The color texture array to set.
*/
public void setColorTexture(TextureArray tex, int layer){
clearColorTargets();
addColorTexture(tex, layer);
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* Set the color texture to use for this framebuffer.
* This automatically clears all existing textures added previously
* with {@link FrameBuffer#addColorTexture } and adds this texture as the
* only target.
*
* @param tex The cube-map texture to set.
* @param face The face of the cube-map to render to.
*/
public void setColorTexture(TextureCubeMap tex, TextureCubeMap.Face face) {
clearColorTargets();
addColorTexture(tex, face);
}
代码示例来源:origin: info.projectkyoto/mms-engine
/**
* Set the color texture to use for this framebuffer.
* This automatically clears all existing textures added previously
* with {@link FrameBuffer#addColorTexture(com.jme3.texture.Texture2D) }
* and adds this texture as the only target.
*
* @param tex The color texture to set.
*/
public void setColorTexture(Texture2D tex){
clearColorTargets();
addColorTexture(tex);
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
/**
* Set the color texture to use for this framebuffer.
* This automatically clears all existing textures added previously
* with {@link FrameBuffer#addColorTexture } and adds this texture as the
* only target.
*
* @param tex The color texture to set.
*/
public void setColorTexture(Texture2D tex){
clearColorTargets();
addColorTexture(tex);
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
/**
* Set the color texture array to use for this framebuffer.
* This automatically clears all existing textures added previously
* with {@link FrameBuffer#addColorTexture } and adds this texture as the
* only target.
*
* @param tex The color texture array to set.
*/
public void setColorTexture(TextureArray tex, int layer){
clearColorTargets();
addColorTexture(tex, layer);
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
/**
* Set the color texture to use for this framebuffer.
* This automatically clears all existing textures added previously
* with {@link FrameBuffer#addColorTexture } and adds this texture as the
* only target.
*
* @param tex The cube-map texture to set.
* @param face The face of the cube-map to render to.
*/
public void setColorTexture(TextureCubeMap tex, TextureCubeMap.Face face) {
clearColorTargets();
addColorTexture(tex, face);
}
内容来源于网络,如有侵权,请联系作者删除!