Shadows: Added initial version of convex shape shadow code.

(+stripped out of original polygon generation demo, moved to imgui_dev)
This commit is contained in:
Ben Carter
2020-06-12 14:45:30 +09:00
committed by ocornut
parent f882102374
commit 542f1da1e2
4 changed files with 441 additions and 93 deletions

View File

@ -6832,7 +6832,7 @@ void ImGui::SetCurrentFont(ImFont* font)
g.DrawListSharedData.TexUvLines = atlas->TexUvLines;
g.DrawListSharedData.Font = g.Font;
g.DrawListSharedData.FontSize = g.FontSize;
g.DrawListSharedData.ShadowRectId = atlas->ShadowRectId;
g.DrawListSharedData.ShadowRectIds = &atlas->ShadowRectIds[0];
g.DrawListSharedData.ShadowRectUvs = &atlas->ShadowRectUvs[0];
}