PDA

View Full Version : Can i convert a COLORREF ?



Hideki
05-07-2004, 05:07 AM
Hi Guys,
just want to know if is there a way to convert a ColorREF to 3 floats ...

cause the function glColor4d() needs 3 floats that are in the COLORREF variable ...

thanks

chowe6685
05-07-2004, 05:15 AM
GetRValue
GetBValue
GetGValue

Hideki
05-07-2004, 05:37 AM
COLORREF object;

object.GetRValue();

Is This??
Doesnt work ...

chowe6685
05-07-2004, 05:41 AM
try
GetRValue(object)

Hideki
05-10-2004, 08:40 AM
thx it worked!

you are god