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

Function getUniqueId

src/SFML/Graphics/RenderTarget.cpp:65–70  ·  view source on GitHub ↗

Unique identifier, used for identifying RenderTargets when tracking the currently active RenderTarget within a given context

Source from the content-addressed store, hash-verified

63// Unique identifier, used for identifying RenderTargets when
64// tracking the currently active RenderTarget within a given context
65std::uint64_t getUniqueId()
66{
67 const std::lock_guard lock(getMutex());
68 static std::uint64_t id = 1; // start at 1, zero is "no RenderTarget"
69 return id++;
70}
71
72// Map to help us detect whether a different RenderTarget
73// has been activated within a single context

Callers 1

initializeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected