9 #include "third_party/imgui/imgui.h"
19 std::shared_ptr<TypographerContext> typographer_context) {
20 typographer_context_ = std::move(typographer_context);
29 if (!content_context.
IsValid()) {
33 auto callback = [&](
RenderTarget& render_target) ->
bool {
34 return entity_pass.
Render(content_context, render_target);
40 return std::make_shared<ContentContext>(
GetContext(), typographer_context_);
49 if (!content_context->IsValid()) {
53 return entity.
Render(*content_context, pass);
64 if (!content_context.
IsValid()) {
68 static bool wireframe =
false;
69 if (ImGui::IsKeyPressed(ImGuiKey_Z)) {
70 wireframe = !wireframe;
73 return callback(content_context, pass);