diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-19 12:32:08 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-19 12:32:08 +0000 |
| commit | 6f2b43af9b83c69134a7a5ecb6e5820c42fcb135 (patch) | |
| tree | b1fa8d0efc76771e7685c9cfba9249b1a5cd98a7 /src/game/editor/ed_layer_quads.cpp | |
| parent | dd21ae1bc7a648138d33727628983a3b25a07570 (diff) | |
| download | zcatch-6f2b43af9b83c69134a7a5ecb6e5820c42fcb135.tar.gz zcatch-6f2b43af9b83c69134a7a5ecb6e5820c42fcb135.zip | |
fixed remove and replace image
Diffstat (limited to 'src/game/editor/ed_layer_quads.cpp')
| -rw-r--r-- | src/game/editor/ed_layer_quads.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game/editor/ed_layer_quads.cpp b/src/game/editor/ed_layer_quads.cpp index ca84ffe8..e945dd16 100644 --- a/src/game/editor/ed_layer_quads.cpp +++ b/src/game/editor/ed_layer_quads.cpp @@ -194,3 +194,16 @@ int LAYER_QUADS::render_properties(RECT *toolbox) } +void LAYER_QUADS::modify_image_index(index_modify_func func) +{ + func(&image); +} + +void LAYER_QUADS::modify_envelope_index(index_modify_func func) +{ + for(int i = 0; i < quads.len(); i++) + { + func(&quads[i].pos_env); + func(&quads[i].color_env); + } +} |