public final class UnsafeOperations extends Object
Modifier and Type | Method and Description |
---|---|
static void |
manageSFMLObject(SFMLNativeObject object,
boolean managed)
Flags an SFML object as Java managed or unmanaged.
|
public static void manageSFMLObject(SFMLNativeObject object, boolean managed)
SFMLNativeObject.nativeDelete()
method when this object gets finalized.
This is used for JSFML to differentiate between explicitly self-constructed SFML objects
(using new
) and SFML objects that are managed by other SFML objects, but require
a Java representation.
Wrong use of this method will make the application prone to crashes and memory leaks,
so handle with extreme care.object
- The SFML object wrapper.managed
- Whether or not this object is managed by JSFML.