Skip to content

Conversation

@Bigfoot71
Copy link
Contributor

The glDrawElements implementation was missing (no idea how that got overlooked), and I also fixed the logic. I remember quickly getting swDrawArrays working with the immediate functions and that I needed to rewrite it up properly, but I totally forgot...

Done!

simplescreenrecorder-2025-10-26_00.45.33.mp4

@Bigfoot71 Bigfoot71 changed the title [rlsw] Completness of glDraw functions [rlsw] Completeness of glDraw functions Oct 25, 2025
@raysan5 raysan5 merged commit a818508 into raysan5:master Oct 25, 2025
16 checks passed
@raysan5
Copy link
Owner

raysan5 commented Oct 25, 2025

@Bigfoot71 Oh! Nice addition! 👍😄

I see one operation has been moved to defines, wondering if precalculating some values to minimize divisions and prioritize multiplications could suppose some performance improvement... or maybe compiler already takes care of those?

@Bigfoot71
Copy link
Contributor Author

Bigfoot71 commented Oct 25, 2025

I see one operation has been moved to defines, wondering if precalculating some values to minimize divisions and prioritize multiplications could suppose some performance improvement... or maybe compiler already takes care of those?

Edit: Sorry, I'm tired, I just placed a const float inv255 = 1.0f / 255 in swDrawArrays at some point, and I just thought it was silly that it wasn't being reused, that's all

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