summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/convert/library.txt65
1 files changed, 65 insertions, 0 deletions
diff --git a/tools/convert/library.txt b/tools/convert/library.txt
new file mode 100755
index 0000000..873bdad
--- /dev/null
+++ b/tools/convert/library.txt
@@ -0,0 +1,65 @@
+
+PIECES.IDX
+char[32] "LeoCAD piece library index file"
+unsigned char file version (currently = 3)
+unsigned char last updated installed
+
+PIECE_DATA:
+char[8] name
+char[64] description
+short[6] bounding box (scaled)
+unsigned char flags
+unsigned long default group
+unsigned long offset in PIECES.BIN
+unsigned long info size
+
+MOVED_DATA:
+char[8] old name
+char[8] new name
+
+unsigned short moved count
+unsigned long PIECES.BIN File size
+unsigned short piece count
+
+-----------------------------------------------------------
+
+PIECES.BIN
+char[32] "LeoCAD piece library data file"
+
+PIECE_DATA:
+unsigned long vertex count
+short[] vertex data (scaled)
+unsigned short connection count
+CONNECTION_DATA:
+ unsigned short connection type
+ short[3] position (scaled)
+ short[3] up (<<14)
+
+unsigned short group count
+GROUP_DATA:
+ unsigned char group connection count
+ unsigned short connections index
+ void draw information
+
+-----------------------------------------------------------
+
+TEXTURES.IDX
+char[32] "LeoCAD texture index file"
+unsigned char file version (currently = 1)
+unsigned char last updated installed
+
+TEXTURE_DATA:
+char[8] name
+unsigned short width
+unsigned short height
+unsigned char type (LUMINANCE, RGB, RGBA)
+unsigned long offset in TEXTURES.BIN
+
+unsigned long TEXTURES.BIN File size
+unsigned short piece count
+
+-----------------------------------------------------------
+
+TEXTURES.BIN
+
+char[32] "LeoCAD texture data file"