Check if a RenderTarget with the given ID is active in the current context
| 80 | |
| 81 | // Check if a RenderTarget with the given ID is active in the current context |
| 82 | bool isActive(std::uint64_t id) |
| 83 | { |
| 84 | const auto it = getContextRenderTargetMap().find(sf::Context::getActiveContextId()); |
| 85 | return (it != getContextRenderTargetMap().end()) && (it->second == id); |
| 86 | } |
| 87 | |
| 88 | // Convert an sf::BlendMode::Factor constant to the corresponding OpenGL constant. |
| 89 | std::uint32_t factorToGlConstant(sf::BlendMode::Factor blendFactor) |
no test coverage detected