Implemeting "drawing modes" in a graphics library?
- by banister
i would like to implement 'drawing modes' (in my own graphics library).
That is drawing with AND, OR, etc
However i am storing colors using floats, each channel between 0 and 1.0
Do i have to first convert each color channel to 0-255 before i can use the AND, OR, etc drawing modes? and then convert back to float (0.0-1.0) ?
Or is there another way of doing it?
thanks