Being Sneaky

BlitzMax Forums/BlitzMax Beginners Area/Being Sneaky

JBR(Posted 2015) [#1]
I noticed that SetColor red,green,blue does a max/min for each to check 0..255 range.

then it does

color4ub:Byte[0] = 255
color4ub:Byte[1] = 127
color4ub:Byte[2] = 255
color4ub:Byte[3] = 255
glColor4ubv color4ub

I've found that having these lines in my code is about 60% of the time for setcolor command.

I am using a lot of these commands!

I know it's naughty, but any shortfalls?

Jim


Derron(Posted 2015) [#2]
what happens if you use the directx renderer?

Bye
Ron


JBR(Posted 2015) [#3]
I see what you mean, different code.

Is OpenGL not on every PC as well as dx?

Jim