Files
projectm/src/libprojectM/Renderer/Border.hpp
Kai Blaschke 76a83db1a8 Split Renderable.hpp/.cpp into separate files.
Moved all declarations and implementations into class-specific files. Makes it easier to find them and creates smaller compilation units.

Added Doxygen comments to all moved classes and reformatted their code.

Fixed a few typos and type/function declarations.

Added default initializers in the headers where needed.
2022-03-29 12:11:21 +02:00

37 lines
1.0 KiB
C++

#pragma once
#include "RenderItem.hpp"
/**
* @brief Renders a border around the screen.
*/
class Border : public RenderItem
{
public:
/**
* Constructor. Initializes the required OpenGL data structures.
*/
Border();
void InitVertexAttrib();
/**
* Draws the border.
* @param context The render context data.
*/
void Draw(RenderContext &context);
float outer_size{ 0.0 }; //!< Outer border width
float outer_r{ 0.0 }; //!< Outer border color, red channel.
float outer_g{ 0.0 }; //!< Outer border color, green channel.
float outer_b{ 0.0 }; //!< Outer border color, blue channel.
float outer_a{ 0.0 }; //!< Outer border color, alpha channel.
float inner_size{ 0.0 }; //!< Inner border width
float inner_r{ 0.0 }; //!< Inner border color, red channel.
float inner_g{ 0.0 }; //!< Inner border color, green channel.
float inner_b{ 0.0 }; //!< Inner border color, blue channel.
float inner_a{ 0.0 }; //!< Inner border color, alpha channel.
};