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.
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.