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

C2D_TargetClear requires clear color to be in color format of texture #30

Open
randomouscrap98 opened this issue May 30, 2021 · 0 comments

Comments

@randomouscrap98
Copy link

Unlike all other drawing commands, the color supplied to C2D_TargetClear must be in the format of the texture being cleared. This is particularly troublesome with 16 bit (RGBA5551) textures, as knowledge of the byte endianness of the system (among other things) is necessary in order to get C2D_TargetClear to function properly. For instance, I currently have to perform transformations on the colors produced by C2D_Color32() to get it into 0bGGBBBBBARRRRRGGG0000000000000000 format solely for this function.

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

No branches or pull requests

1 participant