VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::Color Struct Reference

An RGBA color in the engine's byte order, as m_clrRender and glow colors hold it. More...

#include <Color.hpp>

Public Member Functions

bool operator== (const Color &) const =default
 

Public Attributes

uint8_t R = 255
 
uint8_t G = 255
 
uint8_t B = 255
 
uint8_t A = 255
 

Detailed Description

An RGBA color in the engine's byte order, as m_clrRender and glow colors hold it.

A channel left out stays 255, so Color{} is opaque white, Color{255, 0, 0} is opaque red and Color{.A = 0} is invisible.

Definition at line 14 of file Color.hpp.

Member Function Documentation

◆ operator==()

bool VoltMod::Color::operator== ( const Color &  ) const
default

Member Data Documentation

◆ A

uint8_t VoltMod::Color::A = 255

Definition at line 19 of file Color.hpp.

Referenced by VoltMod::KeyValues::Set(), and VoltMod::Entity::SetVisible().

◆ B

uint8_t VoltMod::Color::B = 255

Definition at line 18 of file Color.hpp.

Referenced by VoltMod::KeyValues::Set().

◆ G

uint8_t VoltMod::Color::G = 255

Definition at line 17 of file Color.hpp.

Referenced by VoltMod::KeyValues::Set().

◆ R

uint8_t VoltMod::Color::R = 255

Definition at line 16 of file Color.hpp.

Referenced by VoltMod::KeyValues::Set().


The documentation for this struct was generated from the following file: