Home | History | Annotate | Download | only in scene

Lines Matching refs:VertexBuffer

148             VertexBuffer pvb = mesh.getBuffer(VertexBuffer.Type.Position);
150 VertexBuffer nvb = mesh.getBuffer(VertexBuffer.Type.Normal);
153 if (mesh.getBuffer(VertexBuffer.Type.Tangent) != null) {
155 VertexBuffer tvb = mesh.getBuffer(VertexBuffer.Type.Tangent);
374 int[] compsForBuf = new int[VertexBuffer.Type.values().length];
375 VertexBuffer.Format[] formatForBuf = new VertexBuffer.Format[compsForBuf.length];
412 for (VertexBuffer vb : geom.getMesh().getBufferList().getArray()) {
422 compsForBuf[VertexBuffer.Type.Index.ordinal()] = components;
429 formatForBuf[VertexBuffer.Type.Index.ordinal()] = VertexBuffer.Format.UnsignedInt;
431 formatForBuf[VertexBuffer.Type.Index.ordinal()] = VertexBuffer.Format.UnsignedShort;
441 if (i == VertexBuffer.Type.Index.ordinal()) {
442 data = VertexBuffer.createBuffer(formatForBuf[i], compsForBuf[i], totalTris);
444 data = VertexBuffer.createBuffer(formatForBuf[i], compsForBuf[i], totalVerts);
447 VertexBuffer vb = new VertexBufferVertexBuffer.Type.values()[i]);
448 vb.setupData(VertexBuffer.Usage.Dynamic, compsForBuf[i], formatForBuf[i], data);
463 VertexBuffer inBuf = inMesh.getBuffer(VertexBuffer.Type.values()[bufType]);
465 VertexBuffer outBuf = outMesh.getBuffer(VertexBuffer.Type.values()[bufType]);
471 if (VertexBuffer.Type.Index.ordinal() == bufType) {
483 } else if (VertexBuffer.Type.Position.ordinal() == bufType) {
487 } else if (VertexBuffer.Type.Normal.ordinal() == bufType || VertexBuffer.Type.Tangent.ordinal() == bufType) {
491 if (VertexBuffer.Type.Tangent.ordinal() == bufType) {