project-aster/samples/00_util/gui.h

34 lines
792 B
C++

// =============================================
// Aster: gui.h
// Copyright (c) 2020-2024 Anish Bhobe
// =============================================
#pragma once
#include "global.h"
#include <imgui.h>
struct AttachmentImage;
struct Device;
struct Context;
struct Window;
struct Swapchain;
// ReSharper disable once CppInconsistentNaming
namespace ImGui
{
void Init(const Context *context, const Device *device, const Window *window, vk::Format attachmentFormat,
u32 imageCount, u32 queueFamily, vk::Queue queue);
void Destroy(const Device *device);
void Recreate();
void StartBuild();
void EndBuild();
void Draw(vk::CommandBuffer commandBuffer, const AttachmentImage *attachmentImage);
void PushDisable();
void PopDisable();
} // namespace ImGui
namespace gui = ImGui;