Hey Mike: you mentioned in chapter 14 about how quirky the renderstates can be since you need to restore them each time you modify them. you also claim that this may cause TOO many calls to SetRenderState...
The first point I agree, any time I leave a responsibility up to the programmer (not the framework) I find it a bad practice.
What would setting the renderstate too many times do?
What if you had a RenderStateStack and you could push and pop just like you do with matrices? Wouldn't this work better?
The first point I agree, any time I leave a responsibility up to the programmer (not the framework) I find it a bad practice.
What would setting the renderstate too many times do?
What if you had a RenderStateStack and you could push and pop just like you do with matrices? Wouldn't this work better?