-
-
Notifications
You must be signed in to change notification settings - Fork 459
Expand file tree
/
Copy pathBorder.hpp
More file actions
32 lines (24 loc) · 729 Bytes
/
Border.hpp
File metadata and controls
32 lines (24 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "PresetState.hpp"
#include <Renderer/Backend/OpenGL/OpenGLRenderItem.hpp>
namespace libprojectM {
namespace MilkdropPreset {
/**
* @brief Renders a border around the screen.
*/
class Border : public libprojectM::Renderer::Backend::OpenGL::OpenGLRenderItem
{
public:
Border() = delete;
explicit Border(PresetState& presetState);
/**
* Draws the border.
* @param presetPerFrameContext The per-frame context variables.
*/
void Draw(const PerFrameContext& presetPerFrameContext);
private:
PresetState& m_presetState; //!< The global preset state.
Renderer::Mesh m_borderMesh; //!< The border geometry.
};
} // namespace MilkdropPreset
} // namespace libprojectM