Have Type, need Float Ptr

BlitzMax Forums/BlitzMax Beginners Area/Have Type, need Float Ptr

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.

Hi,

Converting an object to a byte ptr does it.

Unfortunately, you've got to then convert the byte ptr, so it becomes...

Float Ptr( Byte Ptr ambient )

...which ain't pretty.

Max could potentially autocast byte ptrs to anything ptrs (a bit like C and void*), but this seems drastic. Still, once you're in Ptr land...

Or, you the GL module could be modified to only use Byte Ptrs, so you'd be able to send *any* object or ptr to a GL call that required a ptr.