VertexW

Blitz3D Forums/Blitz3D Programming/VertexW

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The Float keeps the value you put in - it can be the "picture" of an integer in case you need integers. Whatever it is in Floats you do not have to care as long as you can place it in a bank and recall it as integer.
So the way would be: Poke an integer or short in a 4-byte-bank, peek it as float, assign it to the w-coord and do the reverse to get it back.
As you suggested already... you can use the bytespace even if its a weird float ;-)