Hi, i working in a new library named pilas [1] with
pySFML but i get a segmentation fault when i try
to copy between images.
By example:
from PySFML import sf
window = sf.RenderWindow(sf.VideoMode(800, 600), "PySFML test")
running = True
imagen2 = sf.Image()
imagen2.LoadFromFile("pilas/data/bomba.png")
imagen = sf.Image()
imagen.LoadFromFile("pilas/data/banana.png")
rect = sf.IntRect(0, 0, 10, 10)
imagen.Copy(imagen2, 0, 0, rect)
sprite = sf.Sprite(imagen)
i get in console:
/bin/bash: line 1: 6023 Segmentation fault python test_bug.py
shell returned 139
This is a bug?, is there any way to work around to it?
I want to create a surface with tiles in a simple tiled map editor.
[1]
www.pilas-engine.com.ar