ysbaddaden / sdl.cr

SDL2 bindings for Crystal
102 stars 32 forks source link

Sdl_gfx #20

Open bararchy opened 6 years ago

bararchy commented 6 years ago

Hi, is there a chance you will add the binding for the gfx lib? It allows for a Much better handling of polygons and drawing shapes by points

ysbaddaden commented 6 years ago

I didn't know about this plugin, so I'm not sure.

bararchy commented 6 years ago

As you feel, I'm right now kinda lost as to figure out if I use SDL and\or SFML.

ysbaddaden commented 6 years ago

Yeah, so many choices: https://www.khronos.org/opengl/wiki/Related_toolkits_and_APIs

bararchy commented 6 years ago

@ysbaddaden Oh no, why did you give me this link! more choices...

ysbaddaden commented 6 years ago

SFML is supposed to be "simple for the newcomer", if it has a nice graphics library, try it out.

Otherwise SDL with an OpenGL graphics library may prove good :)

bararchy commented 6 years ago

@ysbaddaden Seems I'm not the only one interested in this: https://github.com/rumenzu/sdl.cr/commit/352eb2d3776f30ef18e8efe6dc8b7717032c94f8
Care to re-think?

ysbaddaden commented 6 years ago

If someone has a patch ready, you may open a pull request.

bararchy commented 6 years ago

@rumenzu would you care to open a PR for the GFX binding?

RomainFranceschini commented 6 years ago

@bararchy I was planning to actually.

Only graphic primitives are available though. And I defined only a few methods for Renderer. I'm currently in a workshop but will definitely send a PR asap.

bararchy commented 6 years ago

@rumenzu Awesome! thanks :)