diff options
Diffstat (limited to 'libs/rs/rsComponent.cpp')
-rw-r--r-- | libs/rs/rsComponent.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/rs/rsComponent.cpp b/libs/rs/rsComponent.cpp index 831580b..b88710c 100644 --- a/libs/rs/rsComponent.cpp +++ b/libs/rs/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() { } |