Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ApplyColorOperation(ColorOperation colorOperation, float red, float green, float blue, float alpha)
- {
- Color appliedColor;
- #if FRB_MDX
- // passed values from MDX will be 0-255 instead of 0-1 so we simply cast into a byte (Justin 5/15/2012)
- appliedColor = Color.FromArgb(
- (byte)alpha,
- (byte)red,
- (byte)green,
- (byte)blue
- );
- #else
- // passed values from XNA will be 0-1, use the float constructor to create a color object (Justin 5/15/2012)
- appliedColor = new Color(red, green, blue, alpha);
- #endif
- ApplyColorOperation(colorOperation, appliedColor);
- }
Advertisement
Add Comment
Please, Sign In to add comment