///////////////////////////////////////////////////////
| 640 | |
| 641 | //////////////////////////////////////////////////////////// |
| 642 | void 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 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected