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

Method initialize

src/SFML/Graphics/RenderTarget.cpp:642–654  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

640
641////////////////////////////////////////////////////////////
642void RenderTarget::initialize()
643{
644 // Setup the default and current views
645 m_defaultView = View(FloatRect({0, 0}, Vector2f(getSize())));
646 m_view = m_defaultView;
647
648 // Set GL states only on first draw, so that we don't pollute user's states
649 m_cache.glStatesSet = false;
650
651 // Generate a unique ID for this RenderTarget to track
652 // whether it is active within a specific context
653 m_id = RenderTargetImpl::getUniqueId();
654}
655
656
657////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

getUniqueIdFunction · 0.70

Tested by

no test coverage detected