mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
49
src/ui/CBackdropGenerator.hpp
Normal file
49
src/ui/CBackdropGenerator.hpp
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#ifndef UI_C_BACKDROP_GENERATOR_HPP
|
||||
#define UI_C_BACKDROP_GENERATOR_HPP
|
||||
|
||||
#include "gx/Types.hpp"
|
||||
#include <common/String.hpp>
|
||||
#include <tempest/Vector.hpp>
|
||||
|
||||
class CRect;
|
||||
class CSimpleFrame;
|
||||
class CSimpleTexture;
|
||||
class CStatus;
|
||||
class XMLNode;
|
||||
|
||||
class CBackdropGenerator {
|
||||
public:
|
||||
// Member variables
|
||||
CSimpleTexture* m_backgroundTexture = nullptr;
|
||||
CSimpleTexture* m_leftTexture = nullptr;
|
||||
CSimpleTexture* m_rightTexture = nullptr;
|
||||
CSimpleTexture* m_topTexture = nullptr;
|
||||
CSimpleTexture* m_bottomTexture = nullptr;
|
||||
CSimpleTexture* m_topLeftTexture = nullptr;
|
||||
CSimpleTexture* m_topRightTexture = nullptr;
|
||||
CSimpleTexture* m_bottomLeftTexture = nullptr;
|
||||
CSimpleTexture* m_bottomRightTexture = nullptr;
|
||||
RCString m_background;
|
||||
RCString m_border;
|
||||
uint32_t m_pieces = 0;
|
||||
int32_t m_tileBackground = 0;
|
||||
int32_t int44;
|
||||
float m_cornerSize = 0.025f;
|
||||
float m_backgroundSize = 0.0f;
|
||||
float m_topInset = 0.0f;
|
||||
float m_bottomInset = 0.0f;
|
||||
float m_leftInset = 0.0f;
|
||||
float m_rightInset = 0.0f;
|
||||
CImVector m_color = { 0x00 };
|
||||
CImVector m_borderColor = { 0x00 };
|
||||
EGxBlend m_blend;
|
||||
|
||||
// Member functions
|
||||
CBackdropGenerator();
|
||||
void Generate(const CRect*);
|
||||
void LoadXML(XMLNode*, CStatus*);
|
||||
void SetBorderVertexColor(const CImVector&);
|
||||
void SetOutput(CSimpleFrame*);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue