Castor3D 0.16.0
Multiplatform 3D engine
Classes | Namespaces | Functions
RgbaColour.hpp File Reference

Classes

class  castor::RgbaColourT< ComponentType >
 RGBA colour representation. More...
 

Namespaces

namespace  castor
 

Functions

static String castor::getPredefinedName (PredefinedRgbaColour predefined)
 Retrieves predefined colour name.
 
static PredefinedRgbaColour castor::getPredefinedRgba (String const &name)
 Retrieves predefined colour from a name.
 
template<typename ComponentType >
bool castor::operator== (RgbaColourT< ComponentType > const &lhs, RgbaColourT< ComponentType > const &rhs)
 Equality operator.
 
template<typename ComponentType >
bool castor::operator!= (RgbaColourT< ComponentType > const &lhs, RgbaColourT< ComponentType > const &rhs)
 Inequality operator.
 
template<typename ComponentType >
RgbaColourT< ComponentType > castor::operator+ (RgbaColourT< ComponentType > const &lhs, RgbaColourT< ComponentType > const &rhs)
 addition operator
 
template<typename ComponentType >
RgbaColourT< ComponentType > castor::operator- (RgbaColourT< ComponentType > const &lhs, RgbaColourT< ComponentType > const &rhs)
 Substraction operator.
 
template<typename ComponentType , typename T >
RgbaColourT< ComponentType > castor::operator+ (RgbaColourT< ComponentType > const &lhs, T rhs)
 addition operator
 
template<typename ComponentType , typename T >
RgbaColourT< ComponentType > castor::operator- (RgbaColourT< ComponentType > const &lhs, T rhs)
 Subtraction operator.
 
template<typename ComponentType , typename T >
RgbaColourT< ComponentType > castor::operator* (RgbaColourT< ComponentType > const &lhs, T rhs)
 Multiplication operator.
 
template<typename ComponentType , typename T >
RgbaColourT< ComponentType > castor::operator/ (RgbaColourT< ComponentType > const &lhs, T rhs)
 Division operator.
 
Point3ub castor::toRGBByte (RgbaColourT< ColourComponent > const &colour)
 Stores a colour's components into a point in RGB format.
 
Point3ub castor::toBGRByte (RgbaColourT< ColourComponent > const &colour)
 Stores a colour's components into a point in BGR format.
 
Point4ub castor::toRGBAByte (RgbaColourT< ColourComponent > const &colour)
 Stores a colour's components into a point in RGBA format.
 
Point4ub castor::toBGRAByte (RgbaColourT< ColourComponent > const &colour)
 Stores a colour's components into a point in BGRA format.
 
Point4ub castor::toARGBByte (RgbaColourT< ColourComponent > const &colour)
 Stores a colour's components into a point in ARGB format.
 
Point4ub castor::toABGRByte (RgbaColourT< ColourComponent > const &colour)
 Stores a colour's components into a point in ABGR format.
 
template<typename ComponentType >
Point3f castor::toRGBFloat (RgbaColourT< ComponentType > const &colour)
 Stores a colour's components into a point in RGB format.
 
template<typename ComponentType >
Point3f castor::toBGRFloat (RgbaColourT< ComponentType > const &colour)
 Stores a colour's components into a point in BGR format.
 
template<typename ComponentType >
Point4f castor::toRGBAFloat (RgbaColourT< ComponentType > const &colour)
 Stores a colour's components into a point in RGBA format.
 
template<typename ComponentType >
Point4f castor::toARGBFloat (RgbaColourT< ComponentType > const &colour)
 Stores a colour's components into a point in ARGB format.
 
template<typename ComponentType >
Point4f castor::toABGRFloat (RgbaColourT< ComponentType > const &colour)
 Stores a colour's components into a point in ABGR format.
 
template<typename ComponentType >
Point4f castor::toBGRAFloat (RgbaColourT< ComponentType > const &colour)
 Stores a colour's components into a point in BGRA format.
 
uint32_t castor::toRGBPacked (RgbaColourT< ColourComponent > const &colour)
 Packs a colour's components into an uint32_t in the RGB format (0x00RRGGBB).
 
uint32_t castor::toBGRPacked (RgbaColourT< ColourComponent > const &colour)
 Packs a colour's components into an uint32_t in the BGR format (0x00BBGGRR).
 
uint32_t castor::toARGBPacked (RgbaColourT< ColourComponent > const &colour)
 Packs a colour's components into an uint32_t in the ARGB format (0xAARRGGBB).
 
uint32_t castor::toRGBAPacked (RgbaColourT< ColourComponent > const &colour)
 Packs a colour's components into an uint32_t in the RGBA format (0xRRGGBBAA).
 
uint32_t castor::toABGRPacked (RgbaColourT< ColourComponent > const &colour)
 Packs a colour's components into an uint32_t in the ABGR format (0xAABBGGRR).
 
uint32_t castor::toBGRAPacked (RgbaColourT< ColourComponent > const &colour)
 Packs a colour's components into an uint32_t in the BGRA format (0xBBGGRRAA).