本文整理了Java中com.jme3.scene.Mesh.getBuffers()
方法的一些代码示例,展示了Mesh.getBuffers()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mesh.getBuffers()
方法的具体详情如下:
包路径:com.jme3.scene.Mesh
类名称:Mesh
方法名:getBuffers
[英]Returns a map of all VertexBuffer on this Mesh. The integer key for the map is the Enum#ordinal()of the vertex buffer's Type. Note that the returned map is a reference to the map used internally, modifying it will cause undefined results.
[中]返回此网格上所有VertexBuffer的贴图。映射的整数键是顶点缓冲区类型的Enum#ordinal()。请注意,返回的映射是对内部使用的映射的引用,修改它将导致未定义的结果。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
mesh.getBuffers().remove(bufferType.ordinal());
代码示例来源:origin: info.projectkyoto/mms-engine
Mesh mesh = gm.getMesh();
if (mesh != null) {
for (Entry<VertexBuffer> entry : mesh.getBuffers()) {
VertexBuffer buf = entry.getValue();
if (buf.getData() != null) {
代码示例来源:origin: info.projectkyoto/mms-engine
IntMap<VertexBuffer> bufs = in.getBuffers();
for (Entry<VertexBuffer> ent : bufs){
VertexBuffer vb = ent.getValue();
IntMap<VertexBuffer> inbufs = in.getBuffers();
for (Entry<VertexBuffer> ent : inbufs){
VertexBuffer vb = ent.getValue();
IntMap<VertexBuffer> outbufs = out.getBuffers();
for (Entry<VertexBuffer> ent : outbufs){
VertexBuffer vb = ent.getValue();
代码示例来源:origin: info.projectkyoto/mms-engine
IntMap<VertexBuffer> bufs = mesh.getBuffers();
for (Entry<VertexBuffer> entry : bufs){
VertexBuffer vb = entry.getValue();
代码示例来源:origin: info.projectkyoto/mms-engine
for (Entry<VertexBuffer> entry : geom.getMesh().getBuffers()) {
compsForBuf[entry.getKey()] = entry.getValue().getNumComponents();
formatForBuf[entry.getKey()] = entry.getValue().getFormat();
代码示例来源:origin: info.projectkyoto/mms-engine
for (Entry<VertexBuffer> entry : geom.getMesh().getBuffers()) {
compsForBuf[entry.getKey()] = entry.getValue().getNumComponents();
formatForBuf[entry.getKey()] = entry.getValue().getFormat();
内容来源于网络,如有侵权,请联系作者删除!