lingmodeler
↓ 0 downloadsLingModeler: box modeling with quads and tris, rigging + weight painting, 2D vector illustration and animation, procedural textures and game assets; .lmesh / .ling native formats, OBJ, glTF and SVG import / export
Keywords 3d, modeling, vector, svg, gltf, obj, rigging, animation, textures, ling
lingfu install lingmodelerCode / Files (67)
tools/make_os_entry.py
"""Generate ling/main_os.ling (the LingOS entry) from ling/main.ling: same app, LingOS platform layer.
Run after editing main.ling: python tools/make_os_entry.py (the LingOS build scripts call it)."""
import io, os
root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
src = io.open(os.path.join(root, 'ling', 'main.ling'), encoding='utf-8').read()
assert 'use "plat.ling"' in src
out = src.replace('use "plat.ling"', 'use "plat_os.ling"', 1)
head = ('# GENERATED by tools/make_os_entry.py from main.ling - edit main.ling, then re-run the script.\n'
'# LingOS entry: the same LingModeler on the in-kernel Ling runtime (scanline polygons, no image files).\n')
io.open(os.path.join(root, 'ling', 'main_os.ling'), 'w', encoding='utf-8', newline='\n').write(head + out)
print('wrote ling/main_os.ling')