public abstract class SFMLNativeObject extends Object
This class serves as a communication interface between native SFML objects and their Java representations by linking the Java object to the object's native pointer.
There should be no reason whatsoever to use this class outside of JSFML itself.
Modifier | Constructor and Description |
---|---|
protected |
SFMLNativeObject()
Constructs a JSFML native object by invoking the
nativeCreate()
method and retrieving a pointer to the SFML object in the JVM heap. |
protected |
SFMLNativeObject(long wrap)
Deprecated.
Use of this constructor may cause undefined behaviour and is not supported.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected abstract long |
nativeCreate()
Deprecated.
Use of this method may cause undefined behaviour and is not supported.
|
protected abstract void |
nativeDelete()
Deprecated.
Use of this method may cause undefined behaviour and is not supported.
|
protected abstract void |
nativeSetExPtr()
Deprecated.
Use of this method may cause undefined behaviour and is not supported.
|
protected SFMLNativeObject()
nativeCreate()
method and retrieving a pointer to the SFML object in the JVM heap.@Deprecated protected SFMLNativeObject(long wrap)
wrap
- the pointer to the native SFML object in the JNI heap.@Deprecated protected abstract long nativeCreate()
@Deprecated protected abstract void nativeSetExPtr()
It is called after the object has been created or wrapped around an already existing pointer.
@Deprecated protected abstract void nativeDelete()