Improve structure support using symbol lookup of named structures in scripts to allow them to appear as just pointers to structs.

This commit is contained in:
Jason Sams
2009-09-03 15:43:13 -07:00
parent 1c1ffa0cab
commit 2525a81522
13 changed files with 194 additions and 88 deletions

View File

@@ -110,9 +110,12 @@ public class Allocation extends BaseObj {
}
public void data(Object o) {
mRS.nAllocationDataFromObject(mID, mType, o);
mRS.nAllocationSubDataFromObject(mID, mType, 0, o);
}
public void subData(int offset, Object o) {
mRS.nAllocationSubDataFromObject(mID, mType, offset, o);
}
public class Adapter1D extends BaseObj {
Adapter1D(int id, RenderScript rs) {