User talk:Ssg: Difference between revisions
m (The notes are just an info for me. I'll update the pics as fast as possible.) |
m (types - let's see what we have) |
||
Line 1: | Line 1: | ||
Let's see what we have: | |||
file id = res_id | |||
level id = lev_id | |||
unsigned integer = uint + lenght in bits | |||
signed integer = int + lenght in bits | |||
high bit = hb | |||
float = float | |||
link = link | |||
raw offset = offset | |||
string = char[lenght in bytes] | |||
boolean = bool | |||
color = color | |||
bitset = bitset (In my interpretation a bitset has a lenght of one byte. "Bool" for bitsets is a bit confusing in my opinion. If I recall correctly Oni uses only "bitset collections", which are 4 bitsets in a row (so always 4 bytes are used, even if there's no need for 4 bytes). | |||
>>I'd strongly suggest vectors, quaternions, planes and matrices. | |||
IMO that's not a good idea. It turns "type" more into a "description". F.e. a vector is stored as a float (column "type"). The information that this float is a vector should be placed in the column "description". | |||
<!-- please don't delete this | <!-- please don't delete this | ||
http://14mb.de/u/ccc/botright.gif | http://14mb.de/u/ccc/botright.gif | ||
--> | --> |
Revision as of 20:23, 4 September 2007
Let's see what we have:
file id = res_id
level id = lev_id
unsigned integer = uint + lenght in bits
signed integer = int + lenght in bits
high bit = hb
float = float
link = link
raw offset = offset
string = char[lenght in bytes]
boolean = bool color = color
bitset = bitset (In my interpretation a bitset has a lenght of one byte. "Bool" for bitsets is a bit confusing in my opinion. If I recall correctly Oni uses only "bitset collections", which are 4 bitsets in a row (so always 4 bytes are used, even if there's no need for 4 bytes).
>>I'd strongly suggest vectors, quaternions, planes and matrices.
IMO that's not a good idea. It turns "type" more into a "description". F.e. a vector is stored as a float (column "type"). The information that this float is a vector should be placed in the column "description".