Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rshapes] Expose shapes drawing texture and rectangle #3677

Merged
merged 3 commits into from
Dec 28, 2023

Conversation

JeffM2501
Copy link
Contributor

In order to allow external code to do the same thing as the rshapes functions, we need to export the shape texture and texture rect so that external shape functions can use them.

This allows people to copy code from rshapes and build extended or new shape functions in user code and still have all the same features and optimizations that internal shape functions have.

…tside of raylib with the same optimizations as internal raylib functions.
@raysan5 raysan5 changed the title [SHAPES] prvide read access to shape texture info [rshapes] Expose shapes drawing texture and rectangle Dec 26, 2023
Copy link
Contributor

@orcmid orcmid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. In rshapes.c line 122 is replaced twice.

... and I was just looking where to give this a thumbs-up :).

@raysan5 raysan5 merged commit ad64a43 into raysan5:master Dec 28, 2023
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 28, 2023

@JeffM2501 thanks for the review!

@JeffM2501 JeffM2501 deleted the shape_texture_getter branch May 3, 2024 04:33
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.

3 participants