| 11437 | } |
| 11438 | |
| 11439 | void LAStransform::add_operation(LASoperation* transform_operation) |
| 11440 | { |
| 11441 | if (num_operations == alloc_operations) |
| 11442 | { |
| 11443 | U32 i; |
| 11444 | alloc_operations += 16; |
| 11445 | LASoperation** temp_operations = new LASoperation*[alloc_operations]; |
| 11446 | if (operations) |
| 11447 | { |
| 11448 | for (i = 0; i < num_operations; i++) |
| 11449 | { |
| 11450 | temp_operations[i] = operations[i]; |
| 11451 | } |
| 11452 | delete[] operations; |
| 11453 | } |
| 11454 | operations = temp_operations; |
| 11455 | } |
| 11456 | operations[num_operations] = transform_operation; |
| 11457 | num_operations++; |
| 11458 | } |
| 11459 | |
| 11460 | void LAStransform::delete_operation(const CHAR* name) |
| 11461 | { |