16
Feature requests / Re: sf::BlendMode::apply() function
« on: December 23, 2014, 06:17:02 am »
Back when the new system was being implemented, Laurent had suggested that we keep all the OpenGL calls in sf::RenderTarget.
However, having a public apply() function would be rather useful, and with proper usage, it will not invalidate the cache, so maybe we should consider adding it back in. Anyone from the core team care to comment?
Moreover, apply() should not be there. Let's keep all implementation details in RenderTarget.cpp and the BlendMode structure clean. People who use direct OpenGL calls will not use sf::BlendMode anyway, so I don't see any reason to leave a public apply() function, other than possibly breaking the implementation / state cache / whatever.
However, having a public apply() function would be rather useful, and with proper usage, it will not invalidate the cache, so maybe we should consider adding it back in. Anyone from the core team care to comment?