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

Exposed symbols cleanup #18

Merged
merged 3 commits into from
May 13, 2024
Merged

Conversation

mardy
Copy link
Collaborator

@mardy mardy commented May 6, 2024

The diff is huge again due to running clang-format on image_DXT, which I previously missed. But if reviewed commit-by-commit it should not take a lot of time.

mardy added 3 commits May 6, 2024 21:51
Exporing symbols with the _ogx_ prefix greatly reduces the risk of
naming collisions with the application's code.

Besides the renaming, move the texture_list variable as a member of the
main structure, to remove one exported symbols.
Use a macro to avoid renaming all occurrences (though at some point
we might want to do that).
Completely remove the DirectDrawSurface export methods, opengx is not an
imaging library and does not need these methods itself.

Mark a bunch of internally used functions as static.

Rename the only needed external function to have the `_ogx_` prefix, in
order to avoid collisions with the application's code.

Afther these changes, the symbols exported by libopengx.a (except all
those starting with `gl*`) are the following:

- ogx_initialize (which is meant to be public)
- _ogx_log_level (internal variable)
- _ogx_state (internal variable)
- _ogx_convert_rgb_image_to_DXT1 (internal function)
@mardy mardy force-pushed the exposed-symbols branch from cdc4d0c to a98e413 Compare May 6, 2024 18:51
@WinterMute WinterMute merged commit 90c6e36 into devkitPro:master May 13, 2024
2 checks passed
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