Public Member Functions | Public Attributes

gnash::SWFCxForm Class Reference

Color transformation record. More...

#include <SWFCxForm.h>

List of all members.

Public Member Functions

 SWFCxForm ()
 Construct an identity CxForm.
void concatenate (const SWFCxForm &c)
 Concatenate SWFCxForm c onto ours.
rgba transform (const rgba &in) const
 Transform the given color, return the result.
void transform (boost::uint8_t &r, boost::uint8_t &g, boost::uint8_t &b, boost::uint8_t &a) const
 Transform the given color.
void read_rgb (SWFStream &in)
 Read RGB from the SWF input stream.
void read_rgba (SWFStream &in)
 Read RGBA from the SWF input stream.

Public Attributes

boost::int16_t ra
boost::int16_t ga
boost::int16_t ba
boost::int16_t aa
boost::int16_t rb
boost::int16_t gb
boost::int16_t bb
boost::int16_t ab

Detailed Description

Color transformation record.


Constructor & Destructor Documentation

gnash::SWFCxForm::SWFCxForm (  )  [inline]

Construct an identity CxForm.


Member Function Documentation

void gnash::SWFCxForm::concatenate ( const SWFCxForm c  ) 

Concatenate SWFCxForm c onto ours.

When transforming colors, c's transform is applied first, then ours.

References aa, ab, ba, bb, ga, gb, ra, and rb.

Referenced by gnash::getWorldCxForm(), and gnash::Transform::operator*=().

void gnash::SWFCxForm::read_rgb ( SWFStream in  ) 
void gnash::SWFCxForm::read_rgba ( SWFStream in  ) 
void gnash::SWFCxForm::transform ( boost::uint8_t &  r,
boost::uint8_t &  g,
boost::uint8_t &  b,
boost::uint8_t &  a 
) const

Transform the given color.

References aa, ab, ba, bb, ga, gb, ra, and rb.

rgba gnash::SWFCxForm::transform ( const rgba in  )  const

Member Data Documentation

boost::int16_t gnash::SWFCxForm::aa
boost::int16_t gnash::SWFCxForm::ab
boost::int16_t gnash::SWFCxForm::ba
boost::int16_t gnash::SWFCxForm::bb
boost::int16_t gnash::SWFCxForm::ga
boost::int16_t gnash::SWFCxForm::gb
boost::int16_t gnash::SWFCxForm::ra
boost::int16_t gnash::SWFCxForm::rb

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