Arkanoid Remake  1.0
Public Member Functions | Public Attributes | List of all members
sdltk::ColorRGBA Struct Reference

Color data structure (red, green, blue, alpha=opacity) More...

#include <sdltk.h>

Public Member Functions

 ColorRGBA (unsigned char r=0, unsigned char g=0, unsigned char b=0, unsigned char a=0)
 

Public Attributes

unsigned char R
 Red component (0..255)
 
unsigned char G
 Green component (0..255)
 
unsigned char B
 Blue component (0..255)
 
unsigned char A
 Alpha (opacity) component (0..255)
 

Detailed Description

Color data structure (red, green, blue, alpha=opacity)

Constructor & Destructor Documentation

sdltk::ColorRGBA::ColorRGBA ( unsigned char  r = 0,
unsigned char  g = 0,
unsigned char  b = 0,
unsigned char  a = 0 
)
inline

Constructor (all parameters are optional, default value is 0,0,0,0)

Parameters
rRed component (0..255)
gGreen component (0..255)
bBlue component (0..255)
aAlpha (opacity) component (0..255)

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