Skip to content

Conversation

@YewIsHot
Copy link

@YewIsHot YewIsHot commented Nov 5, 2025

No description provided.

@lukasmatena
Copy link
Owner

@YewIsHot Thank you. I missed this PR in the other github notifications, hence the long reply. While I am not sure I will be able to maintain this gem, update to SDL3 certainly makes sense. However, I would like to ensure that the built-it deps handling still works - it should either download and build SDL3, or stick to SDL2 and the library itself should be able to use both, which would be preferable. This can be achieved through some minimal interface or using #ifdef spaghetization (which could actually be more suitable in this case). I will try to find time and amend & test your changes accordingly, when I have a bit of time.

How well did you test your changes? Did you try all functionality provided in cppgraphics.hpp or build & test the examples, or did you just make the compiler happy and tested you use cases? Actually, on that - what do you use the thing for? :-)

@YewIsHot
Copy link
Author

Hey @lukasmatena,

I was working on an OpenGL project that included a simple map generator producing a complex of chambers, and I needed a way to visualize the result before rendering the actual scene. Since I was already planning to use SDL3, I didn’t like the idea of pulling in SDL2 just for this.

Regarding testing, I didn’t do anything beyond what I personally needed from the library—basically just enough to keep the compiler happy :). That said, I did run into a couple of issues with some odd behavior, and I’m not sure whether these are bugs on my side or intended limitations:

I wasn’t able to set the default window background color.

When drawing a rectangle with a width of 2 px (outline only, no fill), an assertion in the rendering code fails.

I’m not sure if these are expected or not, but that was my experience. Other than that, the library seemed fine and was very pleasant to use.

P.S. I used the library to generate images like this:

map_schema_big

It shows the generated complex of rooms (green squares), walls (white lines), and doors (blue lines). In other words, only lines and squares were drawn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants