Canvas & drawing


(Brian Holdsworth) #1

Hi. I am new to the list. I apologize if I am joining this discussion topic
"late".

I can imagine a future in which all my non-browser client development is
centered around Swift. I'm excited for such a future!

But my platform needs include Linux, and I currently see no method for
opening a canvas and drawing. That is not much, but it would be a good
starting point, and would probably carry some developers like me pretty far.

My first thought was SDL. What about a Swift friendly binding to SDL that
works on Linux, Mac, and iOS? Is such a thing, or a better equivalent,
already happening?

Best,
Brian


(Andrey Fidrya) #2

Hi! I've been experimenting with SDL & Swift and it worked well
on Windows / Cygwin, should be easy to add Linux:

https://github.com/zmeyc/sdl-game-swift

I ended up splitting it into two repos (game repo + SDL2 repo),
to avoid manually specifying header search paths and import paths
after generating xcodeproj. Wasn't able to automate this when using
a single repo.

Regards,
Andrey

ยทยทยท

On 2 Feb 2017, at 15:05, Brian Holdsworth via swift-users <swift-users@swift.org> wrote:

Hi. I am new to the list. I apologize if I am joining this discussion topic "late".

I can imagine a future in which all my non-browser client development is centered around Swift. I'm excited for such a future!

But my platform needs include Linux, and I currently see no method for opening a canvas and drawing. That is not much, but it would be a good starting point, and would probably carry some developers like me pretty far.

My first thought was SDL. What about a Swift friendly binding to SDL that works on Linux, Mac, and iOS? Is such a thing, or a better equivalent, already happening?

Best,
Brian

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users