DLL to extend B3D released

Blitz3D Forums/Blitz3D Userlibs/DLL to extend B3D released

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.

I notice that the colour conversion functions:

BP_GetIntRed%( IntColor ) : "GetIntRed@4" ; returns red component of an integer 
BP_GetIntGreen%( IntColor ) : "GetIntGreen@4" ; returns green component of an integer
BP_GetIntBlue%( IntColor ) : "GetIntBlue@4" ; returns blue component of an integer
BP_GetIntAlpha%( IntColor ) : "GetIntAlpha@4" ; returns alpha component of an integer
BP_GetRGBInt%( r,g,b ) : "GetRGBInt@12" ; converts r,g,b to integer
BP_GetRGBAInt%( r,g,b,a ) : "GetRGBAInt@16" ; converts r,g,b,a To integer


Seem to operate by returning the overall Integer as a negative, with 255,255,255 being equivalent to -1
Whilst this isn't so much a problem itself, it does have a side effect where the BLUE component is in fact the first and the RED component is the last one returned.

It's not too hard to alter in the Decls, switching the Red and the Blue function names :)