Hello,
Thanks for your answers ! I have multiple remarks here :
1) I know that SDL2 should not be used "as is" in Pharo and I should use OSWindow instead, that's why I won't use SDL2 directly anymore.
2) But for the moment OSWindow uses SDL2 anyway so for experimentation purposes I will try to see what's wrong with my code.
The example you linked Nicolai is working indeed and this is more or less what I did too. I included my code with this e-mail so maybe you can have a better understanding (I am sorry but I didn't comment it :s). Note that for it to work you need to add the SDL_image library and all its plugins (for handling jpeg, png etc.) and add the following method to the image :
SDL_Renderer >> createTextureFromFile: file
������ <primitive: #primitiveNativeCall module: #NativeBoostPlugin error: errorCode>
������ ^ self
������ ������ nbCall: #( SDL_Texture IMG_LoadTexture ( self , String file ) )
������ ������ module: 'SDL_Image.dll'������