diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-12-15 09:56:10 -0800 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2011-12-15 09:56:28 -0800 |
commit | d24b1bb040da73f98556c9d4ec3a5c07b91cc412 (patch) | |
tree | 4bcbd8617a08ad10b68d642a6ae09620ad7ef091 /libs/rs/rsMesh.h | |
parent | b98f6d3466f15a250e4f2851bbae16c66b014cf1 (diff) | |
download | frameworks_base-d24b1bb040da73f98556c9d4ec3a5c07b91cc412.zip frameworks_base-d24b1bb040da73f98556c9d4ec3a5c07b91cc412.tar.gz frameworks_base-d24b1bb040da73f98556c9d4ec3a5c07b91cc412.tar.bz2 |
Element HAL sturct, script side getters
Change-Id: If98dd4c22bce58dca2c9739c8aee935a2dd0b493
Diffstat (limited to 'libs/rs/rsMesh.h')
-rw-r--r-- | libs/rs/rsMesh.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/rs/rsMesh.h b/libs/rs/rsMesh.h index 0fc73fb..84a57ca 100644 --- a/libs/rs/rsMesh.h +++ b/libs/rs/rsMesh.h @@ -28,15 +28,6 @@ namespace renderscript { // An element is a group of Components that occupies one cell in a structure. class Mesh : public ObjectBase { public: - Mesh(Context *); - Mesh(Context *, uint32_t vertexBuffersCount, uint32_t primitivesCount); - ~Mesh(); - - virtual void serialize(OStream *stream) const; - virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_MESH; } - static Mesh *createFromStream(Context *rsc, IStream *stream); - void init(); - struct Hal { mutable void *drv; @@ -57,6 +48,15 @@ public: }; Hal mHal; + Mesh(Context *); + Mesh(Context *, uint32_t vertexBuffersCount, uint32_t primitivesCount); + ~Mesh(); + + virtual void serialize(OStream *stream) const; + virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_MESH; } + static Mesh *createFromStream(Context *rsc, IStream *stream); + void init(); + void setVertexBuffer(Allocation *vb, uint32_t index) { mVertexBuffers[index].set(vb); mHal.state.vertexBuffers[index] = vb; |