Live data from Hacker News

Sdl-gpu: A library for high-performance, modern 2D graphics with SDL

github.com

1–10 of 27 posts

Re: Sdl-gpu: A library for high-performance, modern 2D graphics with SDL

#3
post #2

I looked at the demos and I still fail to see the point of using this over SDL2. SDL2 is already high performance and uses DirectX / OpenGL underneath. What exactly does this library bring to the table?

I've used this library before. It is really good. The biggest difference that I can point out is that you can use shaders with SDL-gpu. Also - it plays nicely with the standard SDL2 lib.

Re: Sdl-gpu: A library for high-performance, modern 2D graphics with SDL

#4
post #2

I looked at the demos and I still fail to see the point of using this over SDL2. SDL2 is already high performance and uses DirectX / OpenGL underneath. What exactly does this library bring to the table?

I think the main feature is being able to easily leverage shaders with a nicer API. Having done a fair bit of SDL over the years, dropping down to pure OpenGL and shaders can be a bit... low-level, which is to be expected. This seems to make that quite a bit nicer?

Edit: For example, check out this http://dinomage.com/reference/SDL_gpu/group__ShaderInterface...

Re: Sdl-gpu: A library for high-performance, modern 2D graphics with SDL

#5
post #2

I looked at the demos and I still fail to see the point of using this over SDL2. SDL2 is already high performance and uses DirectX / OpenGL underneath. What exactly does this library bring to the table?

Are you talking about the low level SDL2 API or the simple game API?

Re: Sdl-gpu: A library for high-performance, modern 2D graphics with SDL

#6
post #4
post #2

I looked at the demos and I still fail to see the point of using this over SDL2. SDL2 is already high performance and uses DirectX / OpenGL underneath. What exactly does this library bring to the table?

I think the main feature is being able to easily leverage shaders with a nicer API. Having done a fair bit of SDL over the years, dropping down to pure OpenGL and shaders can be a bit... low-level, which is to be expected. This seems to make that quite a bit nicer? Edit: For example, check out this http://dinomage.com/reference/SDL_gpu/group__ShaderInterface...

I agree. I think the main purpose is a "2D Accelerated Rendering" replacement that allows for shaders and other custom techniques.

Re: Sdl-gpu: A library for high-performance, modern 2D graphics with SDL

#10
post #9

Finally, bringing (some of) the nice features of SFML to C. SFML, for me, has just the right amount of control over GPU things without having to really know the OpenGL pipeline.

Any reason to just use SFML over this?

SFML is a C++ library, so it provides some of the abstractions C++ has. If that's your cup of tea, I'd recommend SFML.
Post reply on HN