34 lines
793 B
C++
34 lines
793 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, vk::Extent2D extent, vk::ImageView view);
|
|
|
|
void PushDisable();
|
|
void PopDisable();
|
|
} // namespace ImGui
|
|
|
|
namespace gui = ImGui; |