Rgba5551 Struct Reference

16 bit color struct with 5 bits per channel for R, G, and B. and 1 bit for A More...

List of all members.

Public Member Functions

 Rgba5551 (ushort bits)
 constructor taking ushort data
 Rgba5551 (Rgba rgba)
 constructor taking a 32 bit color
Rgba ToRgba ()
 return the color as a 32 bit color
bool Equals (Rgba5551 c)
 equality test
override bool Equals (Object o)
 equality test
override string ToString ()
 get the string representation of color value
override int GetHashCode ()
 gets the hash code for this

Static Public Member Functions

static bool operator== (Rgba5551 c1, Rgba5551 c2)
 equality operator
static bool operator!= (Rgba5551 c1, Rgba5551 c2)
 not equals operator

Public Attributes

ushort Bits
 color data

Detailed Description

16 bit color struct with 5 bits per channel for R, G, and B. and 1 bit for A


Constructor & Destructor Documentation

Rgba5551 ( ushort  bits)

constructor taking ushort data

Parameters:
bitsbits to initialize with
Rgba5551 ( Rgba  rgba)

constructor taking a 32 bit color

Parameters:
rgbathe color to init with

Member Function Documentation

bool Equals ( Rgba5551  c)

equality test

Parameters:
cthe color to compare this to
Returns:
true if this == rgba, false otherwise
override bool Equals ( Object  o)

equality test

Parameters:
othe object to compare this to
Returns:
true if this == o, false otherwise
override int GetHashCode ( )

gets the hash code for this

Returns:
integer hash code
static bool operator!= ( Rgba5551  c1,
Rgba5551  c2 
) [static]

not equals operator

Parameters:
c1color 1
c2color 2
Returns:
true if c 1 != c 2, false otherwise
static bool operator== ( Rgba5551  c1,
Rgba5551  c2 
) [static]

equality operator

Parameters:
c1color 1
c2color 2
Returns:
true if color 1 == color 2, false otherwise
Rgba ToRgba ( )

return the color as a 32 bit color

Returns:
the color as a 32 bit color
override string ToString ( )

get the string representation of color value

Returns:
the string representation of color value

Member Data Documentation

ushort Bits

color data