Home
last modified time | relevance | path

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

12

/frameworks/base/libs/rs/
DrsMesh.cpp22 Mesh::Mesh(Context *rsc) : ObjectBase(rsc) { in Mesh() function in Mesh
31 Mesh::Mesh(Context *rsc, in Mesh() function in Mesh
44 Mesh::~Mesh() { in ~Mesh()
62 void Mesh::init() { in init()
68 void Mesh::serialize(OStream *stream) const { in serialize()
97 Mesh *Mesh::createFromStream(Context *rsc, IStream *stream) { in createFromStream()
139 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); in createFromStream()
164 void Mesh::render(Context *rsc) const { in render()
170 void Mesh::renderPrimitive(Context *rsc, uint32_t primIndex) const { in renderPrimitive()
186 void Mesh::renderPrimitiveRange(Context *rsc, uint32_t primIndex, uint32_t start, uint32_t len) con… in renderPrimitiveRange()
[all …]
DrsMesh.h29 class Mesh : public ObjectBase {
31 Mesh(Context *);
32 Mesh(Context *, uint32_t vertexBuffersCount, uint32_t primitivesCount);
33 ~Mesh();
44 static Mesh *createFromStream(Context *rsc, IStream *stream);
Drs_hal.h37 class Mesh; variable
186 bool (*init)(const Context *rsc, const Mesh *m);
187 … void (*draw)(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len);
188 void (*destroy)(const Context *rsc, const Mesh *m);
DrsRuntime.h71 void rsrDrawMesh(Context *, Script *, Mesh *);
72 void rsrDrawMeshPrimitive(Context *, Script *, Mesh *, uint32_t primIndex);
73 void rsrDrawMeshPrimitiveRange(Context *, Script *, Mesh *,
75 void rsrMeshComputeBoundingBox(Context *, Script *, Mesh *,
DrsScriptC_LibGL.cpp198 void rsrDrawMesh(Context *rsc, Script *sc, Mesh *sm) { in rsrDrawMesh()
206 void rsrDrawMeshPrimitive(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive()
214 void rsrDrawMeshPrimitiveRange(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange()
223 void rsrMeshComputeBoundingBox(Context *rsc, Script *sc, Mesh *sm, in rsrMeshComputeBoundingBox()
DrsFont.h236 ObjectBaseRef<Mesh> mMesh;
DrsFileA3D.cpp235 entry->mRsObj = Mesh::createFromStream(mRSC, mReadStream); in initializeFromEntry()
/frameworks/base/libs/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 *);
45 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()
DrsdMeshObj.cpp32 RsdMeshObj::RsdMeshObj(const Context *rsc, const Mesh *rsMesh) { in RsdMeshObj()
166 Mesh::Primitive_t *prim = mRSMesh->mHal.state.primitives[primIndex]; in renderPrimitiveRange()
DrsdRuntimeStubs.cpp207 static void SC_DrawMesh(Mesh *m) { in SC_DrawMesh()
212 static void SC_DrawMeshPrimitive(Mesh *m, uint32_t primIndex) { in SC_DrawMeshPrimitive()
217 static void SC_DrawMeshPrimitiveRange(Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len) { in SC_DrawMeshPrimitiveRange()
222 static void SC_MeshComputeBoundingBox(Mesh *m, in SC_MeshComputeBoundingBox()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DRsBenchRS.java41 import android.renderscript.Mesh.Primitive;
118 private Mesh m10by10Mesh;
119 private Mesh m100by100Mesh;
120 private Mesh mWbyHMesh;
121 private Mesh mTorus;
122 private Mesh mSingleMesh;
123 private Mesh mParticlesMesh;
237 private Mesh getMbyNMesh(float width, float height, int wResolution, int hResolution) { in getMbyNMesh()
239 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getMbyNMesh()
240 2, Mesh.TriangleMeshBuilder.TEXTURE_0); in getMbyNMesh()
[all …]
/frameworks/base/graphics/java/android/renderscript/
DMesh.java40 public class Mesh extends BaseObj { class
85 Mesh(int id, RenderScript rs) { in Mesh() method in Mesh
327 public Mesh create() { in create()
366 Mesh newMesh = new Mesh(id, mRS); in create()
472 public Mesh create() { in create()
500 Mesh newMesh = new Mesh(id, mRS); in create()
730 public Mesh create(boolean uploadToBufferObject) { in create()
759 Mesh sm = smb.create(); in create()
DFileA3D.java120 public Mesh getMesh() { in getMesh()
121 return (Mesh)getObject(); in getMesh()
141 entry.mLoadedObj = new Mesh(objectID, rs); in internalCreate()
/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()
DCarouselView.java25 import android.renderscript.Mesh;
202 public Mesh loadGeometry(int resId) { in loadGeometry()
211 public void setGeometryForItem(int n, Mesh mesh) { in setGeometryForItem()
DCarouselRS.java619 public void setDefaultGeometry(Mesh mesh) in setDefaultGeometry()
624 public void setLoadingGeometry(Mesh mesh) in setLoadingGeometry()
807 public void setGeometry(int n, Mesh geometry) in setGeometry()
935 public Mesh loadGeometry(int resId) { in loadGeometry()
947 return (Mesh) entry.getObject(); in loadGeometry()
/frameworks/base/docs/html/guide/topics/renderscript/
Dgraphics.jd370 android.renderscript.Mesh} and draw it to the screen with <code>rsgDrawMesh()</code>. A {@link
371 android.renderscript.Mesh} is a collection of allocations that represent vertex data (positions,
372 normals, texture coordinates) and index data such as triangles and lines. You can build a Mesh in
376 <li>Build the mesh with the {@link android.renderscript.Mesh.TriangleMeshBuilder} class, which
382 android.renderscript.Allocation}s with the {@link android.renderscript.Mesh.AllocationBuilder}
386 <li>Build the mesh with the {@link android.renderscript.Mesh.Builder} class. This is a
389 android.renderscript.Mesh.AllocationBuilder}. You can specify the types that you want and this
393 <p>To create a mesh using the {@link android.renderscript.Mesh.TriangleMeshBuilder}, you need to
397 android.renderscript.Mesh.TriangleMeshBuilder#addTriangle addTriangle()} draws the triangle with
401 Mesh.TriangleMeshBuilder triangle = new Mesh.TriangleMeshBuilder(renderscriptGL,
[all …]
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
DShadersTestRS.java25 import android.renderscript.Mesh;
157 Mesh mesh = entry.getMesh(); in initMeshes()
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSceneGraphRS.java62 private Mesh mMesh;
193 mMesh = (Mesh)entry.getObject(); in initRS()
DSimpleModelRS.java144 Mesh mesh = entry.getMesh(); in initMeshes()
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
DFBOTestRS.java145 Mesh mesh = entry.getMesh(); in initMeshes()
DFBOSyncRS.java146 Mesh mesh = entry.getMesh(); in initMeshes()

12