| 134 | } |
| 135 | |
| 136 | bool ShaderData::onAdd() |
| 137 | { |
| 138 | if( !Parent::onAdd() ) |
| 139 | return false; |
| 140 | |
| 141 | mShaderMacros.clear(); |
| 142 | |
| 143 | // Keep track of it. |
| 144 | smAllShaderData.push_back( this ); |
| 145 | |
| 146 | // NOTE: We initialize the shader on request. |
| 147 | |
| 148 | for(int i = 0; i < NumTextures; ++i) |
| 149 | { |
| 150 | if( mSamplerNames[i].isNotEmpty() && !mSamplerNames[i].startsWith("$") ) |
| 151 | mSamplerNames[i].insert(0, "$"); |
| 152 | } |
| 153 | |
| 154 | return true; |
| 155 | } |
| 156 | |
| 157 | void ShaderData::onRemove() |
| 158 | { |
nothing calls this directly
no test coverage detected