com.jme3.scene.Mesh.getBuffers()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(110)

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

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

相关文章