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
6
class
OrbitCamera
;
7
class
Attachment
;
8
class
Renderer
;
9
struct
ViewportFBO
;
10
12
namespace
ScreenshotPanel
13
{
14
16
struct
DrawContext
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
34
void
draw
(
DrawContext
& ctx);
35
36
}
// namespace ScreenshotPanel
Attachment
Scene-graph node that attaches a Displayable to a parent bone slot.
Definition
Attachment.h:21
OrbitCamera
Orbit camera that revolves around a target point.
Definition
OrbitCamera.h:10
Renderer
Definition
Renderer.h:18
ScreenshotPanel
ImGui panel for capturing screenshots at custom resolutions.
Definition
ScreenshotPanel.h:13
ScreenshotPanel::draw
void draw(DrawContext &ctx)
Definition
ScreenshotPanel.cpp:125
ScreenshotPanel::DrawContext
Per-frame context for the screenshot panel.
Definition
ScreenshotPanel.h:17
ScreenshotPanel::DrawContext::drawGrid
bool drawGrid
Definition
ScreenshotPanel.h:31
ScreenshotPanel::DrawContext::canvasHeight
int * canvasHeight
Definition
ScreenshotPanel.h:23
ScreenshotPanel::DrawContext::useCanvasOverride
bool * useCanvasOverride
Definition
ScreenshotPanel.h:21
ScreenshotPanel::DrawContext::canvasWidth
int * canvasWidth
Definition
ScreenshotPanel.h:22
ScreenshotPanel::DrawContext::camera
OrbitCamera * camera
Definition
ScreenshotPanel.h:27
ScreenshotPanel::DrawContext::bgColor
glm::vec3 bgColor
Definition
ScreenshotPanel.h:30
ScreenshotPanel::DrawContext::fov
float fov
Definition
ScreenshotPanel.h:29
ScreenshotPanel::DrawContext::root
Attachment * root
Definition
ScreenshotPanel.h:28
ScreenshotPanel::DrawContext::screenshotPath
std::string * screenshotPath
Definition
ScreenshotPanel.h:19
ScreenshotPanel::DrawContext::renderer
Renderer * renderer
Definition
ScreenshotPanel.h:18
ScreenshotPanel::DrawContext::screenshotStatus
std::string * screenshotStatus
Definition
ScreenshotPanel.h:20
ScreenshotPanel::DrawContext::fbo
ViewportFBO * fbo
Definition
ScreenshotPanel.h:26
ViewportFBO
Simple OpenGL framebuffer object wrapper for off-screen rendering.
Definition
ViewportFBO.h:10
Source
App
Panels
ScreenshotPanel.h
Generated by
1.9.8