diff options
author | Jason Sams <rjsams@android.com> | 2009-08-13 12:59:04 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-08-13 12:59:04 -0700 |
commit | fa51719e6c1bd17b3f347477b4827face9ab647e (patch) | |
tree | 1a07e64dd0ce240b0f948f3df55877d7a998e2b6 /rsComponent.cpp | |
parent | 8b2c065dfc16c148e2829a19e83d2269b9bcd4cc (diff) | |
download | rs-fa51719e6c1bd17b3f347477b4827face9ab647e.tar.gz |
Implement named slots and convert script.addType to script.setType to remove ordering restrictions.
Diffstat (limited to 'rsComponent.cpp')
-rw-r--r-- | rsComponent.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/rsComponent.cpp b/rsComponent.cpp index 831580b2..b88710c8 100644 --- a/rsComponent.cpp +++ b/rsComponent.cpp @@ -42,6 +42,26 @@ Component::Component( } } +const char * Component::getCType() const +{ + switch(mType) { + case FLOAT: + return "float"; + case SIGNED: + case UNSIGNED: + switch(mBits) { + case 32: + return "int"; + case 16: + return "short"; + case 8: + return "char"; + } + break; + } + return NULL; +} + Component::~Component() { } |