Lines Matching defs:mesh
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(OStream *stream) const {
108 Mesh *Mesh::createFromStream(Context *rsc, IStream *stream) {
112 ALOGE("mesh loading skipped due to invalid class id");
150 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount);
151 mesh->setName(name.string(), name.size());
153 mesh->setVertexBuffer(vertexBuffers[vCount].get(), vCount);
156 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount);
169 mesh->init();
170 mesh->uploadAll(rsc);
172 return mesh;
175 void Mesh::render(Context *rsc) const {
181 void Mesh::renderPrimitive(Context *rsc, uint32_t primIndex) const {
195 void Mesh::renderPrimitiveRange(Context *rsc, uint32_t primIndex, uint32_t start, uint32_t len) const {
197 ALOGE("Invalid mesh or parameters");
201 mRSC->mHal.funcs.mesh.draw(mRSC, this, primIndex, start, len);
204 void Mesh::uploadAll(Context *rsc) {
218 void Mesh::computeBBox() {
269 Mesh *sm = new Mesh(rsc, vtxCount, idxCount);
288 Mesh *sm = static_cast<Mesh *>(mv);
293 Mesh *sm = static_cast<Mesh *>(mv);
298 Mesh *sm = static_cast<Mesh *>(mv);
308 Mesh *sm = static_cast<Mesh *>(mv);