Hi,
I'm the author of the ocaml-sfml bindings.
OCaml is a garbage collected language, so I need to know the precise relationships between objects that interact together to know which should keep a reference alive around and which don't have to.
For SFML-1.6 Laurent gave me these informations:
- Sound should keep a reference on its SoundBuffer
- String should keep a reference on its Font
- Sprite should keep a reference on its Image
- PostFx should keep references on all its Images given with SetTexture
- Window should keep a reference on its Input
- RenderWindow should keep a reference on its Input
- RenderWindow should keep a reference on its CurrentView and its DefaultView
So could someone help me to update and complete these informations for SFML-2.0?
When object A uses object B, does B have to stay arround or may it be deleted?
- Sound should keep a reference on its SoundBuffer
- String should keep a reference on its Font
?? Texture ?(should | don't have to)? keep a reference on its Image ??
?? Sprite ?(should | don't have to)? keep a reference on its Texture ??
- RenderWindow should keep a reference on its CurrentView and its DefaultView
?? Shape <=> Texture ??
?? SocketSelector <=> Socket ??
?? Socket <=> SocketSelector ??
?? Shader ??
... others ???