summaryrefslogtreecommitdiff
path: root/tools/convert
diff options
context:
space:
mode:
authorleocad1999-11-22 15:26:50 +0000
committerleocad1999-11-22 15:26:50 +0000
commit39aa6e8172098f0f766e0ed800483245cde3da89 (patch)
tree2b4220a8231b2a57013e899c08a6435c9fc16391 /tools/convert
parent43d2cc85cbb3206836620532420aa90d11df2630 (diff)
*** empty log message ***
git-svn-id: http://svn.leocad.org/trunk@15 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'tools/convert')
-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"