Texture Assembler
Texture Assembler is a tool that processes your image folders or resource scripts
and builds optimized texture sheets with corresponding resource scripts from your sprites.
The syntax is:
texasm.exe <res-file>|<wildcard> <output-wildcard> [<task>]
- <res-file>
- Resource script to process.
To be able to locate the resources, texasm.exe must be run from the folder
of the executable that uses the specified script.
- <wildcard>
- A wildcard to search image files for processing.
Either <res-file> or <wildcard> should be specified, not both.
All image formats supported by HGE can be handled.
- <output-wildcard>
- Wildcard to store the result to.
For example, "opt_textures\TitleTex" will generate the following files:
opt_textures\TitleTex1.png, opt_textures\TitleTex1.res
opt_textures\TitleTex2.png, opt_textures\TitleTex2.res
...
- <task>
- Optional resource filter.
If omitted, all resources found in the script/folder will be processed.
The default resgroup assigned to folder resources is 0.
Examples:
texasm game.res tex 2
Process all sprites described in game.res (or scripts included in it)
that have resgroup=2. Store the result into tex01.png, tex01.res, tex02.png, tex02.res etc.
texasm game.res out\tex 7+sprFlower/sprLeaf/sprTrunk
Process all sprites described in game.res (or scripts included in it)
that have resgroup=7 and whose names start with sprFlower, sprLeaf or sprTrunk.
Store the result into out\tex01.png, out\tex01.res, out\tex02.png, out\tex02.res etc.
texasm data\* tex
Process all image files found in the folder "data". Assign resgroup=0 to generated descriptions.
Store the result into tex01.png, tex01.res, tex02.png, tex02.res etc.
texasm data\* tex 3-gui\menu\title
Process all image files found in the folder "data" whose names DON'T start with gui, menu or title.
Assign resgroup=3 to generated descriptions. Store the result into tex01.png, tex01.res, tex02.png, tex02.res etc.
texasm data\* tex +mars/earth/mercury
Process all image files found in the folder "data" whose names start with gui, menu or title.
Assign resgroup=0 to generated descriptions. Store the result into tex01.png, tex01.res, tex02.png, tex02.res etc.
texasm game.res tex -gui\\menu\\title
Process all sprites described in game.res (or scripts included in it)whose names DON'T start with gui, menu or title.
Store the result into tex01.png, tex01.res, tex02.png, tex02.res etc.
Note: Currently only Sprite resources and only 32bit PNG output are supported.
|