You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to migrate from SDL2 to SDL3 and ran into a rode block when using the SDL_RenderGeometry() function. I'm not sure if this is a bug or something that I'm just simply missing, so I thought I'd ask it here. When I try to render a triangle with a texture in SDL2 it works like a charm, but when I do the equivalent in SDL3 all I get is a white triangle. I'm using the same bmp image. The only discernible difference between the two, from what I can see is that SDL3's SDL_Vertex uses SDL_FColor instead of SDL_Color. Here is my working SDL2 code:
I've been trying to migrate from SDL2 to SDL3 and ran into a rode block when using the SDL_RenderGeometry() function. I'm not sure if this is a bug or something that I'm just simply missing, so I thought I'd ask it here. When I try to render a triangle with a texture in SDL2 it works like a charm, but when I do the equivalent in SDL3 all I get is a white triangle. I'm using the same bmp image. The only discernible difference between the two, from what I can see is that SDL3's SDL_Vertex uses SDL_FColor instead of SDL_Color. Here is my working SDL2 code:
This produces the texture mapped triangle and flashes it as I expected.
and here's the equvelent SDL3 code:
This is does not seem to produce the texture mapping at all, and when I log it to see if the texture is NULL, it is not NULL!
Lastly, this is the texture that I'm loading in both example.
The text was updated successfully, but these errors were encountered: