diff options
author | 2009-08-09 17:01:55 -0700 | |
---|---|---|
committer | 2009-08-09 17:05:13 -0700 | |
commit | 1bada8cd6e4f340de93cff4a2439835fc3b1456c (patch) | |
tree | bdc1ed59f9b9ef531bca7220550a025a89ca4173 /libs/rs/rsAllocation.h | |
parent | 467f3df13dc9324b35c139bd6d291265015ba4d3 (diff) |
Begin implementing SimpleMesh and fix some bugs with refcounting and java object destruction tracking.
Diffstat (limited to 'libs/rs/rsAllocation.h')
-rw-r--r-- | libs/rs/rsAllocation.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/rs/rsAllocation.h b/libs/rs/rsAllocation.h index d0b91fd88830..eb1da69d0898 100644 --- a/libs/rs/rsAllocation.h +++ b/libs/rs/rsAllocation.h @@ -23,7 +23,7 @@ namespace android { namespace renderscript { - + class Allocation : public ObjectBase { @@ -55,11 +55,15 @@ public: void data(const void *data); void subData(uint32_t xoff, uint32_t count, const void *data); - void subData(uint32_t xoff, uint32_t yoff, + void subData(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, const void *data); void subData(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, uint32_t h, uint32_t d, const void *data); + void enableGLVertexBuffers() const; + void setupGLIndexBuffers() const; + + protected: ObjectBaseRef<const Type> mType; void * mPtr; @@ -87,7 +91,6 @@ protected: // is allowed. bool mIsVertexBuffer; uint32_t mBufferID; - }; } |