-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
[Renderers/Raylib] TYPE_NONE not handled in the raylib renderer #202
Comments
It's exactly what it sounds like — nothing. In the renderer's big switch statement (the one that determines which command is drawn), add: case CLAY_RENDER_COMMAND_TYPE_NONE:
break; Though, you did say you were using the built-in RayLib renderer. I'm surprised it doesn't handle that already. Anyway, Clay probably gave a |
Actually, reading over that again, it probably gave a CLAY(
CLAY_LAYOUT(
{.sizing = {CLAY_SIZING_GROW, CLAY_SIZING_GROW}}
),
CLAY_RECTANGLE({.color = accent_color, .cornerRadius = {8, 8, 8, 8}})
); It is admittedly a little confusing, but I'm not the Clay maintainer. I think Barker is planning on updating the syntax for those things in the future, though. |
I'll reopen this to handle the case in the renderer. |
True @EmmanuelMess this is your fault not a real bug, you need to add things inside the CLAY macro, on your code you don't call the CLAY macro |
The issue is present in the case where nothing is drawn and an empty window is a valid window, so the raylib renderer should handle the empty case. That's why this issue is still open. |
I just got "Unhandled command type." for raylib renderer for command "CLAY__ELEMENT_CONFIG_TYPE_NONE".
My layout is just a rectangle:
full code
The text was updated successfully, but these errors were encountered: