Home
last modified time | relevance | path

Searched refs:VertexBuffer (Results 1 – 25 of 81) sorted by relevance

1234

/external/jmonkeyengine/engine/src/core/com/jme3/effect/
DParticlePointMesh.java37 import com.jme3.scene.VertexBuffer;
38 import com.jme3.scene.VertexBuffer.Format;
39 import com.jme3.scene.VertexBuffer.Usage;
65 VertexBuffer pvb = new VertexBuffer(VertexBuffer.Type.Position); in initParticleData()
69 VertexBuffer buf = getBuffer(VertexBuffer.Type.Position); in initParticleData()
78 VertexBuffer cvb = new VertexBuffer(VertexBuffer.Type.Color); in initParticleData()
82 buf = getBuffer(VertexBuffer.Type.Color); in initParticleData()
91 VertexBuffer svb = new VertexBuffer(VertexBuffer.Type.Size); in initParticleData()
94 buf = getBuffer(VertexBuffer.Type.Size); in initParticleData()
103 VertexBuffer tvb = new VertexBuffer(VertexBuffer.Type.TexCoord); in initParticleData()
[all …]
DParticleTriMesh.java39 import com.jme3.scene.VertexBuffer;
40 import com.jme3.scene.VertexBuffer.Format;
41 import com.jme3.scene.VertexBuffer.Usage;
67 VertexBuffer pvb = new VertexBuffer(VertexBuffer.Type.Position); in initParticleData()
71 VertexBuffer buf = getBuffer(VertexBuffer.Type.Position); in initParticleData()
80 VertexBuffer cvb = new VertexBuffer(VertexBuffer.Type.Color); in initParticleData()
84 buf = getBuffer(VertexBuffer.Type.Color); in initParticleData()
92 VertexBuffer tvb = new VertexBuffer(VertexBuffer.Type.TexCoord); in initParticleData()
105 buf = getBuffer(VertexBuffer.Type.TexCoord); in initParticleData()
129 VertexBuffer ivb = new VertexBuffer(VertexBuffer.Type.Index); in initParticleData()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DMesh.java46 import com.jme3.scene.VertexBuffer.Format;
47 import com.jme3.scene.VertexBuffer.Type;
48 import com.jme3.scene.VertexBuffer.Usage;
168 …private SafeArrayList<VertexBuffer> buffersList = new SafeArrayList<VertexBuffer>(VertexBuffer.cla…
169 private IntMap<VertexBuffer> buffers = new IntMap<VertexBuffer>();
170 private VertexBuffer[] lodLevels;
205 clone.buffersList = new SafeArrayList<VertexBuffer>(VertexBuffer.class,buffersList); in clone()
235 clone.buffers = new IntMap<VertexBuffer>(); in deepClone()
236 clone.buffersList = new SafeArrayList<VertexBuffer>(VertexBuffer.class); in deepClone()
237 for (VertexBuffer vb : buffersList.getArray()){ in deepClone()
[all …]
DBatchNode.java148 VertexBuffer pvb = mesh.getBuffer(VertexBuffer.Type.Position); in updateSubBatch()
150 VertexBuffer nvb = mesh.getBuffer(VertexBuffer.Type.Normal); in updateSubBatch()
153 if (mesh.getBuffer(VertexBuffer.Type.Tangent) != null) { in updateSubBatch()
155 VertexBuffer tvb = mesh.getBuffer(VertexBuffer.Type.Tangent); in updateSubBatch()
374 int[] compsForBuf = new int[VertexBuffer.Type.values().length]; in mergeGeometries()
375 VertexBuffer.Format[] formatForBuf = new VertexBuffer.Format[compsForBuf.length]; in mergeGeometries()
412 for (VertexBuffer vb : geom.getMesh().getBufferList().getArray()) { in mergeGeometries()
422 compsForBuf[VertexBuffer.Type.Index.ordinal()] = components; in mergeGeometries()
429 formatForBuf[VertexBuffer.Type.Index.ordinal()] = VertexBuffer.Format.UnsignedInt; in mergeGeometries()
431 formatForBuf[VertexBuffer.Type.Index.ordinal()] = VertexBuffer.Format.UnsignedShort; in mergeGeometries()
[all …]
DVertexBuffer.java57 public class VertexBuffer extends NativeObject implements Savable, Cloneable { class
321 public VertexBuffer(Type type){ in VertexBuffer() method in VertexBuffer
322 super(VertexBuffer.class); in VertexBuffer()
329 public VertexBuffer(){ in VertexBuffer() method in VertexBuffer
330 super(VertexBuffer.class); in VertexBuffer()
333 protected VertexBuffer(int id){ in VertexBuffer() method in VertexBuffer
334 super(VertexBuffer.class, id); in VertexBuffer()
766 public void copyElement(int inIndex, VertexBuffer outVb, int outIndex){ in copyElement()
782 public void copyElements(int inIndex, VertexBuffer outVb, int outIndex, int len){ in copyElements()
883 public VertexBuffer clone(){ in clone()
[all …]
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/
DFloatToFixed.java41 import com.jme3.scene.VertexBuffer;
42 import com.jme3.scene.VertexBuffer.Format;
43 import com.jme3.scene.VertexBuffer.Type;
44 import com.jme3.scene.VertexBuffer.Usage;
62 VertexBuffer positions = mesh.getBuffer(Type.Position); in convertToFixed()
63 VertexBuffer normals = mesh.getBuffer(Type.Normal); in convertToFixed()
64 VertexBuffer texcoords = mesh.getBuffer(Type.TexCoord); in convertToFixed()
65 VertexBuffer indices = mesh.getBuffer(Type.Index); in convertToFixed()
70 Buffer newBuf = VertexBuffer.createBuffer(posFmt, positions.getNumComponents(), in convertToFixed()
76 VertexBuffer newPosVb = new VertexBuffer(Type.Position); in convertToFixed()
[all …]
DModelConverter.java37 import com.jme3.scene.VertexBuffer.Format;
38 import com.jme3.scene.VertexBuffer.Type;
84 VertexBuffer original = mesh.getBuffer(Type.Index); in generateStrips()
85 Buffer buf = VertexBuffer.createBuffer(original.getFormat(), in generateStrips()
139 IntMap<VertexBuffer> bufs = mesh.getBuffers(); in optimize()
140 for (Entry<VertexBuffer> entry : bufs){ in optimize()
141 VertexBuffer vb = entry.getValue(); in optimize()
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DTriangleCollector.java38 import com.jme3.scene.VertexBuffer;
39 import com.jme3.scene.VertexBuffer.Type;
133 IntMap<VertexBuffer> bufs = in.getBuffers(); in gatherTris()
134 for (Entry<VertexBuffer> ent : bufs){ in gatherTris()
135 VertexBuffer vb = ent.getValue(); in gatherTris()
142 Buffer b = VertexBuffer.createBuffer(vb.getFormat(), in gatherTris()
146 VertexBuffer outVb = new VertexBuffer(vb.getBufferType()); in gatherTris()
193 IntMap<VertexBuffer> inbufs = in.getBuffers(); in gatherTris()
194 for (Entry<VertexBuffer> ent : inbufs){ in gatherTris()
195 VertexBuffer vb = ent.getValue(); in gatherTris()
[all …]
DGeometryBatchFactory.java9 import com.jme3.scene.VertexBuffer.Format;
10 import com.jme3.scene.VertexBuffer.Type;
11 import com.jme3.scene.VertexBuffer.Usage;
97 int[] compsForBuf = new int[VertexBuffer.Type.values().length]; in mergeGeometries()
133 for (VertexBuffer vb : geom.getMesh().getBufferList().getArray()){ in mergeGeometries()
163 data = VertexBuffer.createBuffer(formatForBuf[i], compsForBuf[i], totalTris); in mergeGeometries()
165 data = VertexBuffer.createBuffer(formatForBuf[i], compsForBuf[i], totalVerts); in mergeGeometries()
168 VertexBuffer vb = new VertexBuffer(Type.values()[i]); in mergeGeometries()
185 VertexBuffer inBuf = inMesh.getBuffer(Type.values()[bufType]); in mergeGeometries()
186 VertexBuffer outBuf = outMesh.getBuffer(Type.values()[bufType]); in mergeGeometries()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/
DSkeletonWire.java39 import com.jme3.scene.VertexBuffer;
40 import com.jme3.scene.VertexBuffer.Format;
41 import com.jme3.scene.VertexBuffer.Type;
42 import com.jme3.scene.VertexBuffer.Usage;
77 VertexBuffer pb = new VertexBuffer(Type.Position); in SkeletonWire()
82 VertexBuffer ib = new VertexBuffer(Type.Index); in SkeletonWire()
95 VertexBuffer vb = getBuffer(Type.Position); in updateGeometry()
DSkeletonPoints.java39 import com.jme3.scene.VertexBuffer;
40 import com.jme3.scene.VertexBuffer.Format;
41 import com.jme3.scene.VertexBuffer.Type;
42 import com.jme3.scene.VertexBuffer.Usage;
55 VertexBuffer pb = new VertexBuffer(Type.Position); in SkeletonPoints()
66 VertexBuffer vb = getBuffer(Type.Position); in updateGeometry()
DWireBox.java37 import com.jme3.scene.VertexBuffer;
38 import com.jme3.scene.VertexBuffer.Format;
39 import com.jme3.scene.VertexBuffer.Type;
40 import com.jme3.scene.VertexBuffer.Usage;
76 VertexBuffer pvb = getBuffer(Type.Position); in updatePositions()
79 pvb = new VertexBuffer(Type.Position); in updatePositions()
DWireSphere.java38 import com.jme3.scene.VertexBuffer;
39 import com.jme3.scene.VertexBuffer.Format;
40 import com.jme3.scene.VertexBuffer.Type;
41 import com.jme3.scene.VertexBuffer.Usage;
83 VertexBuffer pvb = getBuffer(Type.Position); in updatePositions()
87 pvb = new VertexBuffer(Type.Position); in updatePositions()
/external/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/
DMeshLoader.java43 import com.jme3.scene.VertexBuffer.Format;
44 import com.jme3.scene.VertexBuffer.Type;
45 import com.jme3.scene.VertexBuffer.Usage;
95 private VertexBuffer vb;
111 private IntMap<List<VertexBuffer>> lodLevels = new IntMap<List<VertexBuffer>>();
200 vb = new VertexBuffer(VertexBuffer.Type.Index); in startFaces()
381 VertexBuffer weights = new VertexBuffer(Type.BoneWeight); in startBoneAssigns()
382 VertexBuffer indices = new VertexBuffer(Type.BoneIndex); in startBoneAssigns()
394 vb = new VertexBuffer(Type.Position); in startVertexBuffer()
400 vb = new VertexBuffer(Type.Normal); in startVertexBuffer()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/model/anim/
DTestCustomAnim.java45 import com.jme3.scene.VertexBuffer;
46 import com.jme3.scene.VertexBuffer.Format;
47 import com.jme3.scene.VertexBuffer.Type;
48 import com.jme3.scene.VertexBuffer.Usage;
78 VertexBuffer weightsBuf = new VertexBuffer(Type.BoneWeight); in simpleInitApp()
84 VertexBuffer indicesBuf = new VertexBuffer(Type.BoneIndex); in simpleInitApp()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/meshes/
DMeshContext.java5 import com.jme3.scene.VertexBuffer;
23 private Map<Geometry, VertexBuffer> uvCoordinates = new HashMap<Geometry, VertexBuffer>();
91 public void addUVCoordinates(Geometry geometry, VertexBuffer vertexBuffer) { in addUVCoordinates()
102 public VertexBuffer getUVCoordinates(Geometry geometry) { in getUVCoordinates()
DMeshHelper.java50 import com.jme3.scene.VertexBuffer;
51 import com.jme3.scene.VertexBuffer.Format;
52 import com.jme3.scene.VertexBuffer.Type;
53 import com.jme3.scene.VertexBuffer.Usage;
279 VertexBuffer verticesBuffer = new VertexBuffer(Type.Position); in toMesh()
284 VertexBuffer verticesBind = new VertexBuffer(Type.BindPosePosition); in toMesh()
287 VertexBuffer normalsBuffer = new VertexBuffer(Type.Normal); in toMesh()
291 VertexBuffer normalsBind = new VertexBuffer(Type.BindPoseNormal); in toMesh()
294 VertexBuffer uvCoordsBuffer = null; in toMesh()
296 uvCoordsBuffer = new VertexBuffer(Type.TexCoord); in toMesh()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/texture/
DTestTexture3D.java14 import com.jme3.scene.VertexBuffer;
15 import com.jme3.scene.VertexBuffer.Type;
16 import com.jme3.scene.VertexBuffer.Usage;
48 VertexBuffer vb = sphere.getBuffer(Type.Position); in simpleInitApp()
58 VertexBuffer uvCoordsBuffer = new VertexBuffer(Type.TexCoord); in simpleInitApp()
59 uvCoordsBuffer.setupData(Usage.Static, 3, com.jme3.scene.VertexBuffer.Format.Float, in simpleInitApp()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DCurve.java37 import com.jme3.scene.VertexBuffer;
136 this.setBuffer(VertexBuffer.Type.Position, 3, array); in createCatmullRomMesh()
137 …this.setBuffer(VertexBuffer.Type.Index, 2, indices);//(spline.getControlPoints().size() - 1) * nbS… in createCatmullRomMesh()
188 this.setBuffer(VertexBuffer.Type.Position, 3, array); in createBezierMesh()
189 this.setBuffer(VertexBuffer.Type.Index, 2, indices); in createBezierMesh()
225 this.setBuffer(VertexBuffer.Type.Position, 3, array); in createNurbMesh()
226 this.setBuffer(VertexBuffer.Type.Index, 2, indices); in createNurbMesh()
258 this.setBuffer(VertexBuffer.Type.Position, 3, array); in createLinearMesh()
259 this.setBuffer(VertexBuffer.Type.Index, 2, indices); in createLinearMesh()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DUVCoordinatesGenerator.java41 import com.jme3.scene.VertexBuffer;
42 import com.jme3.scene.VertexBuffer.Format;
43 import com.jme3.scene.VertexBuffer.Usage;
98 …public static VertexBuffer generateUVCoordinates(int texco, int projection, int textureDimension, … in generateUVCoordinates()
103 VertexBuffer result = new VertexBuffer(VertexBuffer.Type.TexCoord); in generateUVCoordinates()
110 inputData = BufferUtils.getFloatArray(mesh.getFloatBuffer(VertexBuffer.Type.Position)); in generateUVCoordinates()
126 inputData = BufferUtils.getFloatArray(mesh.getFloatBuffer(VertexBuffer.Type.Normal)); in generateUVCoordinates()
189 mesh.clearBuffer(VertexBuffer.Type.TexCoord);// in case there are coordinates already set in generateUVCoordinates()
287 FloatBuffer positions = mesh.getFloatBuffer(VertexBuffer.Type.Position); in getBoundingTube()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/
DArmatureModifier.java22 import com.jme3.scene.VertexBuffer;
23 import com.jme3.scene.VertexBuffer.Format;
24 import com.jme3.scene.VertexBuffer.Type;
25 import com.jme3.scene.VertexBuffer.Usage;
67 private VertexBuffer verticesWeights;
69 private VertexBuffer verticesWeightsIndices;
240VertexBuffer[] boneWeightsAndIndex = this.getBoneWeightAndIndexBuffer(meshStructure, meshContext.g… in readVerticesWeightsData()
275 …private VertexBuffer[] getBoneWeightAndIndexBuffer(Structure meshStructure, int vertexListSize, in… in getBoneWeightAndIndexBuffer()
341 VertexBuffer verticesWeights = new VertexBuffer(Type.BoneWeight); in getBoneWeightAndIndexBuffer()
344 VertexBuffer verticesWeightsIndices = new VertexBuffer(Type.BoneIndex); in getBoneWeightAndIndexBuffer()
[all …]
/external/skia/experimental/AndroidPathRenderer/
DAndroidPathRenderer.h20 class VertexBuffer {
22 VertexBuffer(): in VertexBuffer() function
28 ~VertexBuffer() { in ~VertexBuffer()
61 const SkMatrix* transform, VertexBuffer* vertexBuffer);
/external/jmonkeyengine/engine/src/core/com/jme3/font/
DBitmapTextPage.java37 import com.jme3.scene.VertexBuffer;
38 import com.jme3.scene.VertexBuffer.Type;
137 VertexBuffer pb = m.getBuffer(Type.Position); in assemble()
138 VertexBuffer tb = m.getBuffer(Type.TexCoord); in assemble()
139 VertexBuffer ib = m.getBuffer(Type.Index); in assemble()
140 VertexBuffer cb = m.getBuffer(Type.Color); in assemble()
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DSkeletonControl.java13 import com.jme3.scene.VertexBuffer.Type;
159 VertexBuffer bi = mesh.getBuffer(Type.BoneIndex); in resetToBind()
164 VertexBuffer bindPos = mesh.getBuffer(Type.BindPosePosition); in resetToBind()
165 VertexBuffer bindNorm = mesh.getBuffer(Type.BindPoseNormal); in resetToBind()
166 VertexBuffer pos = mesh.getBuffer(Type.Position); in resetToBind()
167 VertexBuffer norm = mesh.getBuffer(Type.Normal); in resetToBind()
178 VertexBuffer bindTangents = mesh.getBuffer(Type.BindPoseTangent); in resetToBind()
180 VertexBuffer tangents = mesh.getBuffer(Type.Tangent); in resetToBind()
280 VertexBuffer tb = mesh.getBuffer(Type.Tangent); in softwareSkinUpdate()
307 VertexBuffer vb = mesh.getBuffer(Type.Position); in applySkinning()
[all …]
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/renderer/lwjgl/
DLwjglGL1Renderer.java16 import com.jme3.scene.VertexBuffer;
17 import com.jme3.scene.VertexBuffer.Type;
18 import com.jme3.scene.VertexBuffer.Usage;
847 private int convertArrayType(VertexBuffer.Type type) { in convertArrayType()
862 private int convertVertexFormat(VertexBuffer.Format fmt) { in convertVertexFormat()
912 public void setVertexAttrib(VertexBuffer vb, VertexBuffer idb) { in setVertexAttrib()
975 public void setVertexAttrib(VertexBuffer vb) { in setVertexAttrib()
995 public void drawTriangleList(VertexBuffer indexBuf, Mesh mesh, int count) { in drawTriangleList()
1038 VertexBuffer vb = context.boundAttribs[i]; in clearVertexAttribs()
1048 VertexBuffer indices = null; in renderMeshDefault()
[all …]

1234