mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-11 03:23:51 +00:00
29 procedural-texture inner loops in cli_gen_texture.cpp open-coded the same 4-line "compute index, write 3 RGB bytes" block: size_t idx = (static_cast<size_t>(y) * W + x) * 3; pixels[idx + 0] = r; pixels[idx + 1] = g; pixels[idx + 2] = b; Hoist into cli_png_emit.hpp as inline setPixelRGB(pixels, W, x, y, r, g, b). Header-inline because the procedural handlers call this once per pixel — the abstraction must not cost a function-call frame per write. Each call site collapses to 1 line. cli_gen_texture.cpp loses ~90 lines from inner-loop bodies. Output bytes verified identical via PNG diff for moss / camo / snake-skin — byte-for-byte the same files as previously generated. (One frost-blend site keeps the open-coded form because it does a read-modify-write alpha blend rather than a pure write.) |
||
|---|---|---|
| .. | ||
| asset_extract | ||
| auth_login_probe | ||
| auth_probe | ||
| blp_convert | ||
| dbc_to_csv | ||
| editor | ||
| asset_pipeline_gui.py | ||
| backup_assets.sh | ||
| diff_classic_turtle_opcodes.py | ||
| gen_opcode_registry.py | ||
| generate_ffx_sdk_vk_permutations.sh | ||
| m2_viewer.py | ||
| opcode_map_utils.py | ||
| validate_opcode_maps.py | ||