Home
last modified time | relevance | path

Searched refs:Mesh (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/rs/
DrsMesh.cpp24 Mesh::Mesh(Context *rsc) : ObjectBase(rsc) { in Mesh() function in Mesh
38 Mesh::Mesh(Context *rsc, in Mesh() function in Mesh
62 Mesh::~Mesh() { in ~Mesh()
75 void Mesh::init() { in init()
81 void Mesh::serialize(Context *rsc, OStream *stream) const { in serialize()
108 Mesh *Mesh::createFromStream(Context *rsc, IStream *stream) { in createFromStream()
150 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); in createFromStream()
175 void Mesh::render(Context *rsc) const { in render()
181 void Mesh::renderPrimitive(Context *rsc, uint32_t primIndex) const { in renderPrimitive()
195 void Mesh::renderPrimitiveRange(Context *rsc, uint32_t primIndex, uint32_t start, uint32_t len) con… in renderPrimitiveRange()
[all …]
DrsMesh.h36 class Mesh : public ObjectBase {
58 Mesh(Context *);
59 Mesh(Context *, uint32_t vertexBuffersCount, uint32_t primitivesCount);
60 ~Mesh();
64 static Mesh *createFromStream(Context *rsc, IStream *stream);
DrsRuntime.h61 void rsrDrawMesh(Context *, Script *, Mesh *);
62 void rsrDrawMeshPrimitive(Context *, Script *, Mesh *, uint32_t primIndex);
63 void rsrDrawMeshPrimitiveRange(Context *, Script *, Mesh *,
65 void rsrMeshComputeBoundingBox(Context *, Script *, Mesh *,
DrsScriptC_LibGL.cpp159 void rsrDrawMesh(Context *rsc, Script *sc, Mesh *sm) { in rsrDrawMesh()
167 void rsrDrawMeshPrimitive(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive()
175 void rsrDrawMeshPrimitiveRange(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange()
184 void rsrMeshComputeBoundingBox(Context *rsc, Script *sc, Mesh *sm, in rsrMeshComputeBoundingBox()
Drs_hal.h44 class Mesh; variable
244 bool (*init)(const Context *rsc, const Mesh *m);
245 … void (*draw)(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len);
246 void (*destroy)(const Context *rsc, const Mesh *m);
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DMeshTest.java29 import android.renderscript.Mesh.Primitive;
45 private Mesh m10by10Mesh;
46 private Mesh m100by100Mesh;
47 private Mesh mWbyHMesh;
105 private Mesh getMbyNMesh(float width, float height, int wResolution, int hResolution) { in getMbyNMesh()
107 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getMbyNMesh()
108 2, Mesh.TriangleMeshBuilder.TEXTURE_0); in getMbyNMesh()
DUiTest.java32 import android.renderscript.Mesh.Primitive;
58 private Mesh mSingleMesh;
59 private Mesh mParticlesMesh;
144 final Mesh.AllocationBuilder meshBuilder = new Mesh.AllocationBuilder(mRS); in createParticlesMesh()
157 private Mesh getSingleMesh(float width, float height) { in getSingleMesh()
158 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getSingleMesh()
159 2, Mesh.TriangleMeshBuilder.TEXTURE_0); in getSingleMesh()
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
DFountainFboRS.java22 import android.renderscript.Mesh;
46 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS); in init()
48 smb.addIndexSetType(Mesh.Primitive.POINT); in init()
49 Mesh sm = smb.create(); in init()
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
DFountainRS.java44 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS); in init()
46 smb.addIndexSetType(Mesh.Primitive.POINT); in init()
47 Mesh sm = smb.create(); in init()
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
DFountainRS.java44 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS); in init()
46 smb.addIndexSetType(Mesh.Primitive.POINT); in init()
47 Mesh sm = smb.create(); in init()
/frameworks/rs/driver/
DrsdMesh.h24 const android::renderscript::Mesh *m);
26 const android::renderscript::Mesh *m,
29 const android::renderscript::Mesh *m);
DrsdMeshObj.h25 class Mesh; variable
37 const android::renderscript::Mesh *);
46 const android::renderscript::Mesh *mRSMesh;
DrsdMesh.cpp30 bool rsdMeshInit(const Context *rsc, const Mesh *m) { in rsdMeshInit()
41 void rsdMeshDraw(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t le… in rsdMeshDraw()
53 void rsdMeshDestroy(const Context *rsc, const Mesh *m) { in rsdMeshDestroy()
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
DUT_mesh.java22 import android.renderscript.Mesh.*;
27 Mesh mesh;
41 Mesh.AllocationBuilder mBuilder = new Mesh.AllocationBuilder(RS); in initializeGlobals()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DSimpleAppRS.java43 Mesh mSimpleMesh;
44 Mesh mSphereMesh;
45 Mesh mCubeMesh;
69 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, 3, in setupGeometry()
70 Mesh.TriangleMeshBuilder.TEXTURE_0); in setupGeometry()
/frameworks/base/graphics/java/android/renderscript/
DMesh.java41 public class Mesh extends BaseObj { class
93 Mesh(int id, RenderScript rs) { in Mesh() method in Mesh
350 public Mesh create() { in create()
389 Mesh newMesh = new Mesh(id, mRS); in create()
505 public Mesh create() { in create()
533 Mesh newMesh = new Mesh(id, mRS); in create()
786 public Mesh create(boolean uploadToBufferObject) { in create()
811 Mesh sm = smb.create(); in create()
DFileA3D.java129 public Mesh getMesh() { in getMesh()
130 return (Mesh)getObject(); in getMesh()
150 entry.mLoadedObj = new Mesh(objectID, rs); in internalCreate()
/frameworks/base/tests/RenderScriptTests/Balls/src/com/example/android/rs/balls/
DBallsRS.java107 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS); in init()
109 smb.addIndexSetType(Mesh.Primitive.POINT); in init()
110 Mesh smP = smb.create(); in init()
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselController.java24 import android.renderscript.Mesh;
154 public Mesh loadGeometry(int resId) { in loadGeometry()
167 public void setGeometryForItem(int n, Mesh mesh) { in setGeometryForItem()
181 Mesh mesh = mRenderScript.loadGeometry(resId); in setGeometryForItem()
534 Mesh mesh = mRenderScript.loadGeometry(resId); in setDefaultGeometry()
565 Mesh mesh = mRenderScript.loadGeometry(resId); in setLoadingGeometry()
DCarouselViewHelper.java12 import android.renderscript.Mesh;
128 Mesh mesh = getGeometry(id); in handleMessage()
160 mCarouselView.setGeometryForItem(id, (Mesh) msg.obj); in handleMessage()
202 public Mesh getGeometry(int id) { in getGeometry()
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
DRsRenderStatesRS.java107 private Mesh mMbyNMesh;
108 private Mesh mTorus;
140 private Mesh getMbyNMesh(float width, float height, int wResolution, int hResolution) { in getMbyNMesh()
142 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getMbyNMesh()
143 2, Mesh.TriangleMeshBuilder.TEXTURE_0); in getMbyNMesh()
356 mTorus = (Mesh)entry.getObject(); in initMesh()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DSceneManager.java44 import android.renderscript.Mesh;
68 Mesh mQuad;
428 public Mesh getScreenAlignedQuad() { in getScreenAlignedQuad()
433 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getScreenAlignedQuad()
434 3, Mesh.TriangleMeshBuilder.TEXTURE_0); in getScreenAlignedQuad()
DRenderable.java35 import android.renderscript.Mesh;
77 public void setMesh(Mesh mesh) { in setMesh()
114 public void resolveMeshData(Mesh mesh) { in resolveMeshData()
/frameworks/base/docs/html/guide/topics/graphics/renderscript/
Dgraphics.jd316 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS);
318 smb.addIndexSetType(Mesh.Primitive.POINT);
319 Mesh sm = smb.create();
545 android.renderscript.Mesh} and draw it with <code>rsgDrawMesh()</code>. A {@link
546 android.renderscript.Mesh} is a collection of allocations that represent vertex data (positions,
548 and lines with the provided vertex data. You can build a Mesh in three different ways:</p>
551 <li>Build the mesh with the {@link android.renderscript.Mesh.TriangleMeshBuilder} class, which
555 android.renderscript.Allocation}s with the {@link android.renderscript.Mesh.AllocationBuilder}
559 <li>Build the mesh with the {@link android.renderscript.Mesh.Builder} class. You should use
562 android.renderscript.Mesh.AllocationBuilder}. You can specify the types that you want and this
[all …]
/frameworks/support/renderscript/v8/rs_support/
Drs_hal.h44 class Mesh; variable
243 bool (*init)(const Context *rsc, const Mesh *m);
244 … void (*draw)(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len);
245 void (*destroy)(const Context *rsc, const Mesh *m);

123