MCPcopy Create free account
hub / github.com/SFML/SFML / isActive

Function isActive

src/SFML/Graphics/RenderTarget.cpp:82–86  ·  view source on GitHub ↗

Check if a RenderTarget with the given ID is active in the current context

Source from the content-addressed store, hash-verified

80
81// Check if a RenderTarget with the given ID is active in the current context
82bool 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.
89std::uint32_t factorToGlConstant(sf::BlendMode::Factor blendFactor)

Callers 6

clearMethod · 0.85
clearStencilMethod · 0.85
drawMethod · 0.85
pushGLStatesMethod · 0.85
popGLStatesMethod · 0.85
resetGLStatesMethod · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected