User talk:Ssg: Difference between revisions

1,012 bytes added ,  3 September 2007
m
thanks a lot
m (suggestions)
m (thanks a lot)
Line 15: Line 15:
*number = int + lenght in bits (f.e. int32)
*number = int + lenght in bits (f.e. int32)
*4 byte float = float (or float32 ?)
*4 byte float = float (or float32 ?)
*4 byte file id = red_id
*4 byte file id = res_id
*4 byte level id = lev_id
*4 byte level id = lev_id
*4 byte link = ???
*4 byte link = ???
Line 25: Line 25:
*boolean = bool ?
*boolean = bool ?


----
:Integers: see below
:Float: float
:4 byte link: either res_id or WAHA or WAHA* ("WAHA-pointer").
::(also void* when there can be multiple target types)
:4 byte color: RGBA, or rgba32 or rgba4444 or r4g4b4a4
:4 byte offset: either void* or WAHA#*
::(e.g., AKVA0*, TRAM0*, TRAM1*, ..., TRAMd*)
:High bit: dunno, maybe int31bool1
:Booleans: maybe use bool8, bool16 and bool32 for bitsets.
::[[User:Geyser|geyser]] 23:08, 3 September 2007 (CEST)
----


Any other types?
Any other types?
 
----
 
:I'd strongly suggest vectors, quaternions, planes and matrices.
:More generally, all the stuff that is '''typedef'''ed in Oni's code.
:(structures that are defined for use in more than one place)
:I'll ask Neo about just what data types we know for sure.
::[[User:Geyser|geyser]] 23:08, 3 September 2007 (CEST)
----
How to distinguish between the different integers (Byte, UByte, Short, UShort, Long, ULong)?  
How to distinguish between the different integers (Byte, UByte, Short, UShort, Long, ULong)?  


Line 39: Line 56:
*ULong = 0 to 4,294,967,295
*ULong = 0 to 4,294,967,295


 
----
:int8, uint8, int16, uint16, int32, uint32
:Bitsets are essentially unsigned ints...
:Not sure about high bits ([[IDXA]] etc).
:Also not sure complicated bitsets ([[OTLF]]).
::[[User:Geyser|geyser]] 23:08, 3 September 2007 (CEST)
----
[[User:Ssg|Ssg]] 11:00, 3 September 2007 (CEST)
[[User:Ssg|Ssg]] 11:00, 3 September 2007 (CEST)