32 lines
798 B
C++
32 lines
798 B
C++
#ifndef DESTRUM_IMGUIUTILS_H
|
|
#define DESTRUM_IMGUIUTILS_H
|
|
|
|
#include <functional>
|
|
#include <memory>
|
|
#include <string_view>
|
|
#include <vector>
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
#include <destrum/ObjectModel/ObjectId.h>
|
|
|
|
class GameObject;
|
|
|
|
namespace ImGuiUtils {
|
|
[[nodiscard]] bool DrawVec3Control(
|
|
const char* label,
|
|
glm::vec3& value,
|
|
float speed = 0.1f);
|
|
|
|
void RenderSceneInspector(
|
|
std::string_view sceneName,
|
|
const std::vector<std::shared_ptr<GameObject>>& objects,
|
|
const std::vector<std::shared_ptr<GameObject>>& pendingAdditions,
|
|
ObjectId& selectedObjectId,
|
|
const std::function<GameObject*()>& createGameObject,
|
|
const std::function<void()>& drawSceneSettings,
|
|
bool* open = nullptr);
|
|
}
|
|
|
|
#endif // DESTRUM_IMGUIUTILS_H
|