| /frameworks/rs/driver/runtime/ |
| rs_mesh.c | 6 * Mesh 10 Mesh_t *mesh = (Mesh_t *)m.p; local 11 if (mesh == NULL) { 14 return mesh->mHal.state.vertexBuffersCount; 19 Mesh_t *mesh = (Mesh_t *)m.p; local 20 if (mesh == NULL) { 23 return mesh->mHal.state.primitivesCount; 28 Mesh_t *mesh = (Mesh_t *)m.p; local 29 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) 39 Mesh_t *mesh = (Mesh_t *)m.p; local 50 Mesh_t *mesh = (Mesh_t *)m.p; local [all...] |
| /frameworks/native/services/surfaceflinger/RenderEngine/ |
| Mesh.cpp | 17 #include "Mesh.h" 21 Mesh::Mesh(Primitive primitive, size_t vertexCount, size_t vertexSize, size_t texCoordSize) 29 Mesh::~Mesh() { 33 Mesh::Primitive Mesh::getPrimitive() const { 38 float const* Mesh::getPositions() const { 41 float* Mesh::getPositions() { 45 float const* Mesh::getTexCoords() const [all...] |
| Mesh.h | 24 class Mesh { 32 Mesh(Primitive primitive, size_t vertexCount, size_t vertexSize, size_t texCoordsSize = 0); 33 ~Mesh(); 40 friend class Mesh; 67 // number of vertices in this mesh 83 Mesh(const Mesh&); 84 Mesh& operator = (const Mesh&); 85 Mesh const& operator = (const Mesh&) const [all...] |
| /frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
| mesh.rs | 4 rs_mesh mesh; 14 _RS_ASSERT(rsgMeshGetVertexAllocationCount(mesh) == 2); 15 _RS_ASSERT(rsgMeshGetPrimitiveCount(mesh) == 3); 17 rs_allocation meshV0 = rsgMeshGetVertexAllocation(mesh, 0); 18 rs_allocation meshV1 = rsgMeshGetVertexAllocation(mesh, 1); 19 rs_allocation meshV2 = rsgMeshGetVertexAllocation(mesh, 2); 24 rs_allocation meshI0 = rsgMeshGetIndexAllocation(mesh, 0); 25 rs_allocation meshI1 = rsgMeshGetIndexAllocation(mesh, 1); 26 rs_allocation meshI2 = rsgMeshGetIndexAllocation(mesh, 2); 27 rs_allocation meshI3 = rsgMeshGetIndexAllocation(mesh, 3) [all...] |
| UT_mesh.java | 22 import android.renderscript.Mesh.*; 27 Mesh mesh; field in class:UT_mesh 30 super(rstc, "Mesh", ctx); 41 Mesh.AllocationBuilder mBuilder = new Mesh.AllocationBuilder(RS);
|
| /external/jmonkeyengine/engine/src/core/com/jme3/scene/mesh/ |
| WrappedIndexBuffer.java | 1 package com.jme3.scene.mesh; 3 import com.jme3.scene.Mesh; 4 import com.jme3.scene.Mesh.Mode; 12 * mesh mode such as {@link Mode#TriangleStrip} or {@link Mode#LineLoop} 16 * convoluting classes used to process mesh data from an external source. 24 public WrappedIndexBuffer(Mesh mesh){ 25 super(mesh.getVertexCount(), mesh.getMode()); 26 this.ib = mesh.getIndexBuffer() [all...] |
| package.html | 10 The <code>com.jme3.scene.mesh</code> package contains utilities 11 for reading from {@link com.jme3.scene.mesh.IndexBuffer index buffers}. 12 Several implementations are provided of the {@link com.jme3.scene.mesh.IndexBuffer} 15 <li>{@link com.jme3.scene.mesh.IndexByteBuffer} - For reading 8-bit index buffers</li> 16 <li>{@link com.jme3.scene.mesh.IndexShortBuffer} - For reading 16-bit index buffers</li> 17 <li>{@link com.jme3.scene.mesh.IndexIntBuffer} - For reading 32-bit index buffers</li> 18 <li>{@link com.jme3.scene.mesh.VirtualIndexBuffer} - For reading "virtual indices", for 20 <li>{@link com.jme3.scene.mesh.WrappedIndexBuffer} - For converting from
|
| /cts/tests/tests/rsg/src/android/renderscriptgraphics/cts/ |
| MeshTest.java | 22 import android.renderscript.Mesh; 23 import android.renderscript.Mesh.Primitive; 24 import android.renderscript.Mesh.AllocationBuilder; 25 import android.renderscript.Mesh.Builder; 26 import android.renderscript.Mesh.TriangleMeshBuilder; 52 Mesh.AllocationBuilder mab; 54 mab = new Mesh.AllocationBuilder(mRS); 60 mab = new Mesh.AllocationBuilder(mRS); 67 Mesh mesh = mab.create() local 87 Mesh mesh = mb.create(); local [all...] |
| /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/meshes/ |
| MeshContext.java | 11 * Class that holds information about the mesh.
16 /** The mesh stored here as a list of geometries. */
17 private List<Geometry> mesh;
field in class:MeshContext 26 * This method returns the referenced mesh.
28 * @return the referenced mesh
31 return mesh;
35 * This method sets the referenced mesh.
37 * @param mesh
38 * the referenced mesh
40 public void setMesh(List<Geometry> mesh) {
[all...] |
| /external/jmonkeyengine/engine/src/core/com/jme3/scene/ |
| Geometry.java | 56 * should be shaded and the {@link Mesh} data to contain the actual geometry. 63 // models loaded with shared mesh will be automatically fixed. 67 protected Mesh mesh; field in class:Geometry 80 * the start index of this geom's mesh in the batchNode mesh 99 * Create a geometry node without any mesh data. 100 * Both the mesh and the material are null, the geometry 110 * Create a geometry node with mesh data. 115 * @param mesh The mesh data for this geometr [all...] |
| /external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/ |
| HullCollisionShape.java | 7 import com.jme3.scene.Mesh;
24 public HullCollisionShape(Mesh mesh) {
25 this.points = getPoints(mesh);
48 Mesh mesh = (Mesh) capsule.readSavable("hullMesh", null);
local 49 if (mesh != null) {
50 this.points = getPoints(mesh);
86 protected float[] getPoints(Mesh mesh) { [all...] |
| GImpactCollisionShape.java | 39 import com.jme3.scene.Mesh;
41 import com.jme3.scene.mesh.IndexBuffer;
50 * Basic mesh collision shape
65 * creates a collision shape from the given Mesh
66 * @param mesh the Mesh to use
68 public GImpactCollisionShape(Mesh mesh) {
69 createCollisionMesh(mesh);
72 private void createCollisionMesh(Mesh mesh) { [all...] |
| MeshCollisionShape.java | 39 import com.jme3.scene.Mesh;
41 import com.jme3.scene.mesh.IndexBuffer;
51 * Basic mesh collision shape
65 * @param mesh the TriMesh to use
67 public MeshCollisionShape(Mesh mesh) {
68 createCollisionMesh(mesh);
71 private void createCollisionMesh(Mesh mesh) {
72 triangleIndexBase = BufferUtils.createByteBuffer(mesh.getTriangleCount() * 3 * 4); [all...] |
| /external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/ |
| HullCollisionShape.java | 10 import com.jme3.scene.Mesh; 23 public HullCollisionShape(Mesh mesh) { 24 this.points = getPoints(mesh); 47 Mesh mesh = (Mesh) capsule.readSavable("hullMesh", null); local 48 if (mesh != null) { 49 this.points = getPoints(mesh); 67 protected float[] getPoints(Mesh mesh) [all...] |
| /external/jmonkeyengine/engine/src/core/com/jme3/effect/shapes/ |
| EmitterMeshConvexHullShape.java | 5 import com.jme3.scene.Mesh; 10 * (a geometry that tightly wraps the mesh). So in case of multiple meshes some vertices may appear 27 public EmitterMeshConvexHullShape(List<Mesh> meshes) { 33 * of randomly selected mesh. 36 * of randomly selected mesh 41 // now move the point from the meshe's face towards the center of the mesh 48 * of randomly selected mesh. 52 * of randomly selected mesh 59 // now move the point from the meshe's face towards the center of the mesh
|
| /cts/suite/pts/deviceTests/opengl/jni/graphics/ |
| MeshNode.cpp | 16 MeshNode::MeshNode(const Mesh* mesh) : 17 mMesh(mesh) {
|
| Mesh.cpp | 14 #include "Mesh.h" 16 Mesh::Mesh(const float* vertices, const float* normals, const float* texCoords,
|
| /external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/util/ |
| NativeMeshUtil.java | 34 import com.jme3.scene.Mesh;
36 import com.jme3.scene.mesh.IndexBuffer;
47 public static long getTriangleIndexVertexArray(Mesh mesh){
48 ByteBuffer triangleIndexBase = BufferUtils.createByteBuffer(mesh.getTriangleCount() * 3 * 4);
49 ByteBuffer vertexBase = BufferUtils.createByteBuffer(mesh.getVertexCount() * 3 * 4);
50 int numVertices = mesh.getVertexCount();
52 int numTriangles = mesh.getTriangleCount();
55 IndexBuffer indices = mesh.getIndicesAsList();
56 FloatBuffer vertices = mesh.getFloatBuffer(Type.Position); [all...] |
| /external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/ |
| ModelConverter.java | 35 import com.jme3.scene.Mesh.Mode; 39 import com.jme3.scene.mesh.IndexBuffer; 65 public static void generateStrips(Mesh mesh, boolean stitch, boolean listOnly, int cacheSize, int minStripSize){ 72 IndexBuffer ib = mesh.getIndicesAsList(); 84 VertexBuffer original = mesh.getBuffer(Type.Index); 89 ib = mesh.getIndexBuffer(); 113 mesh.setMode(Mode.TriangleStrip); 115 mesh.setElementLengths(elementLengths); 116 mesh.setModeStart(modeStart) 166 Mesh mesh = geom.getMesh(); local [all...] |
| /frameworks/rs/scriptc/ |
| rs_mesh.rsh | 18 * \brief Mesh routines 30 * Returns the number of allocations in the mesh that contain 33 * @param m mesh to get data from 34 * @return number of allocations in the mesh that contain vertex 44 * @param m mesh to get data from 45 * @return number of primitive groups in the mesh. This would 53 * Returns an allocation that is part of the mesh and contains 56 * @param m mesh to get data from 67 * @param m mesh to get data from 75 * Returns the primitive describing how a part of the mesh i [all...] |
| /prebuilts/sdk/renderscript/include/ |
| rs_mesh.rsh | 18 * \brief Mesh routines 30 * Returns the number of allocations in the mesh that contain 33 * @param m mesh to get data from 34 * @return number of allocations in the mesh that contain vertex 44 * @param m mesh to get data from 45 * @return number of primitive groups in the mesh. This would 53 * Returns an allocation that is part of the mesh and contains 56 * @param m mesh to get data from 67 * @param m mesh to get data from 75 * Returns the primitive describing how a part of the mesh i [all...] |
| /external/jmonkeyengine/engine/src/core/com/jme3/animation/ |
| SkeletonControl.java | 25 * the transformations on the mesh 38 private Mesh[] targets; 40 * Used to track when a mesh was updated. Meshes are only updated 69 SkeletonControl(Mesh[] targets, Skeleton skeleton) { 74 private boolean isMeshAnimated(Mesh mesh) { 75 return mesh.getBuffer(Type.BindPosePosition) != null; 78 private Mesh[] findTargets(Node node) { 79 Mesh sharedMesh = null; 80 ArrayList<Mesh> animatedMeshes = new ArrayList<Mesh>() 104 Mesh mesh = geom.getMesh(); local [all...] |
| /frameworks/rs/ |
| rsMesh.cpp | 24 Mesh::Mesh(Context *rsc) : ObjectBase(rsc) { 38 Mesh::Mesh(Context *rsc, 62 Mesh::~Mesh() { 64 mRSC->mHal.funcs.mesh.destroy(mRSC, this); 75 void Mesh::init() { 77 mRSC->mHal.funcs.mesh.init(mRSC, this); 81 void Mesh::serialize(Context *rsc, OStream *stream) const 147 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); local [all...] |
| /external/jmonkeyengine/engine/src/core/com/jme3/util/ |
| TangentBinormalGenerator.java | 42 import com.jme3.scene.mesh.IndexBuffer; 108 public static void generate(Mesh mesh) { 109 generate(mesh, true); 120 Mesh mesh = geom.getMesh(); local 122 // Check to ensure mesh has texcoords and normals before generating 123 if (mesh.getBuffer(Type.TexCoord) != null 124 && mesh.getBuffer(Type.Normal) != null){ 130 public static void generate(Mesh mesh, boolean approxTangents) [all...] |
| /frameworks/base/docs/html/sdk/api_diff/16/changes/ |
| android.renderscript.Mesh.Builder.html | 10 android.renderscript.Mesh.Builder 74 Class android.renderscript.<A HREF="../../../../reference/android/renderscript/Mesh.Builder.html" target="_top"><font size="+2"><code>Mesh.Builder</code></font></A> 86 <A NAME="android.renderscript.Mesh.Builder.ctor_changed(android.renderscript.RenderScript, int)"></A> 87 <nobr><A HREF="../../../../reference/android/renderscript/Mesh.Builder.html#Mesh.Builder(android.renderscript.RenderScript, int)" target="_top"><code>Mesh.Builder</code></A>(<code>RenderScript,</nobr> int<nobr><nobr></code>) </nobr> 105 <A NAME="android.renderscript.Mesh.Builder.create_changed()"></A> 106 <nobr><code>Mesh</code> <A HREF="../../../../reference/android/renderscript/Mesh.Builder.html#create()" target="_top"><code>create</code></A>() </nobr [all...] |