| 130 | //----------------------------------------------------------------------------- |
| 131 | |
| 132 | bool TheoraTextureObject::onAdd() |
| 133 | { |
| 134 | if( !Parent::onAdd() ) |
| 135 | return false; |
| 136 | |
| 137 | if( mFilename == StringTable->EmptyString()) |
| 138 | { |
| 139 | Con::errorf( "TheoraTextureObject::onAdd - 'filename' must be set" ); |
| 140 | return false; |
| 141 | } |
| 142 | |
| 143 | if( mTexTargetName.isEmpty() ) |
| 144 | { |
| 145 | Con::errorf( "TheoraTextureObject::onAdd - 'texTargetName' not set" ); |
| 146 | return false; |
| 147 | } |
| 148 | |
| 149 | if( !mTexTarget.registerWithName( mTexTargetName ) ) |
| 150 | { |
| 151 | Con::errorf( "TheoraTextureObject::onAdd - Could not register texture target '%s", mTexTargetName.c_str() ); |
| 152 | return false; |
| 153 | } |
| 154 | |
| 155 | return true; |
| 156 | } |
| 157 | |
| 158 | //----------------------------------------------------------------------------- |
| 159 |
nothing calls this directly
no test coverage detected