Overload  1.1
Game engine with editor
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
OvUI::Types::Color Struct Reference

#include <Color.h>

Public Member Functions

 Color (float p_r=1.0f, float p_g=1.0f, float p_b=1.0f, float p_a=1.0f)
 
bool operator== (const Color &p_other)
 
bool operator!= (const Color &p_other)
 

Public Attributes

float r
 
float g
 
float b
 
float a
 

Static Public Attributes

static const Color Red = { 1.f, 0.f, 0.f }
 
static const Color Green = { 0.f, 1.f, 0.f }
 
static const Color Blue = { 0.f, 0.f, 1.f }
 
static const Color White = { 1.f, 1.f, 1.f }
 
static const Color Black = { 0.f, 0.f, 0.f }
 
static const Color Grey = { 0.5f, 0.5f, 0.5f }
 
static const Color Yellow = { 1.f, 1.f, 0.f }
 
static const Color Cyan = { 0.f, 1.f, 1.f }
 
static const Color Magenta = { 1.f, 0.f, 1.f }
 

Detailed Description

Data structur that contains color information in a 0.f to 1.f float format

Constructor & Destructor Documentation

◆ Color()

OvUI::Types::Color::Color ( float  p_r = 1.0f,
float  p_g = 1.0f,
float  p_b = 1.0f,
float  p_a = 1.0f 
)

Member Function Documentation

◆ operator!=()

bool OvUI::Types::Color::operator!= ( const Color p_other)

Compares two colors, returns true if they are different

Parameters
p_other

◆ operator==()

bool OvUI::Types::Color::operator== ( const Color p_other)

Compares two colors, returns true if they are identical

Parameters
p_other

Member Data Documentation

◆ a

float OvUI::Types::Color::a

◆ b

float OvUI::Types::Color::b

◆ Black

const OvUI::Types::Color OvUI::Types::Color::Black = { 0.f, 0.f, 0.f }
static

◆ Blue

const OvUI::Types::Color OvUI::Types::Color::Blue = { 0.f, 0.f, 1.f }
static

◆ Cyan

const OvUI::Types::Color OvUI::Types::Color::Cyan = { 0.f, 1.f, 1.f }
static

◆ g

float OvUI::Types::Color::g

◆ Green

const OvUI::Types::Color OvUI::Types::Color::Green = { 0.f, 1.f, 0.f }
static

◆ Grey

const OvUI::Types::Color OvUI::Types::Color::Grey = { 0.5f, 0.5f, 0.5f }
static

◆ Magenta

const OvUI::Types::Color OvUI::Types::Color::Magenta = { 1.f, 0.f, 1.f }
static

◆ r

float OvUI::Types::Color::r

◆ Red

const OvUI::Types::Color OvUI::Types::Color::Red = { 1.f, 0.f, 0.f }
static

@project: Overload

Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

◆ White

const OvUI::Types::Color OvUI::Types::Color::White = { 1.f, 1.f, 1.f }
static

◆ Yellow

const OvUI::Types::Color OvUI::Types::Color::Yellow = { 1.f, 1.f, 0.f }
static

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