diff options
| author | 2010-08-04 14:45:48 -0700 | |
|---|---|---|
| committer | 2010-08-04 14:45:48 -0700 | |
| commit | fb10c16a0528a418053e4b8e75eebe57476b86ef (patch) | |
| tree | 3a48101a091f1e5b34a3c2dd96d7d01fcfd45635 /libs/rs/rsContext.cpp | |
| parent | cf9a44cdf3647c8b31499ad6250f63259c0e34e2 (diff) | |
Added ability to set font color.
Propagating the name of meshes and allocations from native a3d to java
Change-Id: If781f55340b5369459610e5e92ea69e240dcd24e
Diffstat (limited to 'libs/rs/rsContext.cpp')
| -rw-r--r-- | libs/rs/rsContext.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index 61ef5d42a036..1c0395446aa3 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -944,13 +944,18 @@ void rsi_ContextBindFont(Context *rsc, RsFont vfont) rsc->setFont(font); } - void rsi_AssignName(Context *rsc, void * obj, const char *name, uint32_t len) { ObjectBase *ob = static_cast<ObjectBase *>(obj); rsc->assignName(ob, name, len); } +void rsi_GetName(Context *rsc, void * obj, const char **name) +{ + ObjectBase *ob = static_cast<ObjectBase *>(obj); + (*name) = ob->getName(); +} + void rsi_ObjDestroy(Context *rsc, void *obj) { ObjectBase *ob = static_cast<ObjectBase *>(obj); |