i keep seeing types like f32, u32, etc. i assume that they stand for float and unsigned int. questions
1.why don't you use familiar types like float and unsigned etc, etc.
2.where is the documentation about these types.
This types is used for engine portability.
I think you can find it somewhere in typedefs, but you not need to looking for it, names is very intuitive:
s32 32bit signed int
u32 32bit unsigned int
f32 32bit float
trueleowdeo wrote:why don't you use familiar types like float and unsigned etc, etc.
The C++ spec is quite loose around the definition of these types, "int" is 16 or more bits and no longer than a "long", which must be at least 32 bits. We use macros to make sure that they're the same size on all platforms, it keeps things like colour manipulation and file access simple, and makes sure that your programs don't behave strangely on oddball platforms.