Gnash  0.8.10
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.

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 rb, ra, gb, ga, bb, ba, ab, and aa.

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

rgba gnash::SWFCxForm::transform ( const rgba in) const
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 gnash::key::r, gnash::key::g, gnash::key::b, gnash::key::a, ra, rb, ga, gb, ba, bb, aa, and ab.

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: