| 168 | } |
| 169 | |
| 170 | TextureGL33* TextBankGL33::Copy(int from) |
| 171 | { |
| 172 | if (from < 0) |
| 173 | return nullptr; |
| 174 | const TextureGL33* source = _texture[from]; |
| 175 | if (!source) |
| 176 | return nullptr; |
| 177 | const char* sName = source->Name(); |
| 178 | |
| 179 | int iFree = FindFree(); |
| 180 | PoseidonAssert(iFree >= 0); |
| 181 | TextureGL33* texture = new TextureGL33; |
| 182 | |
| 183 | if (texture->Init(sName)) |
| 184 | return nullptr; |
| 185 | |
| 186 | _texture.Access(iFree); |
| 187 | _texture[iFree] = texture; |
| 188 | return texture; |
| 189 | } |
| 190 | |
| 191 | Ref<Texture> TextBankGL33::Load(RStringB name) |
| 192 | { |