import sys
import sdl2.ext

RESOURCES = sdl2.ext.Resources(__file__, "resources")

sdl2.ext.init()
window = sdl2.ext.Window("hello sdl", size=(640, 480))
window.show()

factory = sdl2.ext.SpriteFactory(sdl2.ext.SFOTWARE)
sprite = factory.from_image(RESOURCES.get_path("hello.bmp"))

spriterenderer = factory.create_sprite_render_system(window)
spriterenderer.render(sprite)


