| 2559 | } |
| 2560 | |
| 2561 | bool Clay__ElementIsOffscreen(Clay_BoundingBox *boundingBox) { |
| 2562 | Clay_Context* context = Clay_GetCurrentContext(); |
| 2563 | if (context->disableCulling) { |
| 2564 | return false; |
| 2565 | } |
| 2566 | |
| 2567 | return (boundingBox->x > (float)context->layoutDimensions.width) || |
| 2568 | (boundingBox->y > (float)context->layoutDimensions.height) || |
| 2569 | (boundingBox->x + boundingBox->width < 0) || |
| 2570 | (boundingBox->y + boundingBox->height < 0); |
| 2571 | } |
| 2572 | |
| 2573 | void Clay__CalculateFinalLayout(float deltaTime, bool useStoredBoundingBoxes, bool generateRenderCommands) { |
| 2574 | Clay_Context* context = Clay_GetCurrentContext(); |
no test coverage detected