WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ScreenshotPanel.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <glm/glm.hpp>
5
6class OrbitCamera;
7class Attachment;
8class Renderer;
9struct ViewportFBO;
10
13{
14
17{
18 Renderer* renderer = nullptr;
19 std::string* screenshotPath = nullptr;
20 std::string* screenshotStatus = nullptr;
21 bool* useCanvasOverride = nullptr;
22 int* canvasWidth = nullptr;
23 int* canvasHeight = nullptr;
24
25 // Scene context for rendering at custom resolution
26 ViewportFBO* fbo = nullptr;
27 OrbitCamera* camera = nullptr;
28 Attachment* root = nullptr;
29 float fov = 0.0f;
30 glm::vec3 bgColor{0.0f};
31 bool drawGrid = false;
32};
33
34void draw(DrawContext& ctx);
35
36} // namespace ScreenshotPanel
Scene-graph node that attaches a Displayable to a parent bone slot.
Definition Attachment.h:21
Orbit camera that revolves around a target point.
Definition OrbitCamera.h:10
ImGui panel for capturing screenshots at custom resolutions.
void draw(DrawContext &ctx)
Per-frame context for the screenshot panel.
Simple OpenGL framebuffer object wrapper for off-screen rendering.
Definition ViewportFBO.h:10