Open CiBri0 opened 8 months ago
I regret to say that I can't get what is your problem because there's no actual codes provided to reproduce your problem.
But once I used SDL.RenderGeometry
without any problem in my game.
You can see a red circle near the mouse cursor, which is drawn by RenderGeometry
.
So this code might help to understand the usage:
Thanks you very much for thoses helpful links ! My problems is very similar to what you did in https://github.com/vaiorabbit/sdl2-bindings-whacamole/blob/a4684afb19a536814f6b65e68d604d9cd87c4498/system/draw.rb .
I will try things with those new understanding.
Thank you agai.
Hi,
I tried many times to run the SDL.RenderGeometry() function but I can’t.
In the third argument (vertices), I cannot convert my array containing my SDL::Vertex to FFI::Pointer or FFI::MemoryPointer.
I’m sorry for the inconvenience, plus I think the problem comes from me x)