Populate java objects with native data from a3d file.

Remove legacy constructor from programraster
Make a3d object creation synchronous

Change-Id: Ic7d7547cf6eee6f9a7c6e3ee12cd104e80056a7b
This commit is contained in:
Alex Sakhartchouk
2010-07-15 11:33:03 -07:00
parent 506821b406
commit dfac814c18
10 changed files with 236 additions and 21 deletions

View File

@@ -45,6 +45,16 @@ public class Allocation extends BaseObj {
mID = id;
}
@Override
void updateFromNative() {
mRS.validate();
int typeID = mRS.nAllocationGetType(mID);
if(typeID != 0) {
mType = new Type(typeID, mRS);
mType.updateFromNative();
}
}
public Type getType() {
return mType;
}