Cinder  0.9.1
Public Types | Static Public Member Functions | List of all members
cinder::CHANTRAIT< half_float > Struct Template Reference

#include <ChanTraits.h>

Public Types

typedef float Sum
 
typedef float Accum
 
typedef float SignedSum
 

Static Public Member Functions

static half_float max ()
 
static half_float convert (uint8_t v)
 
static half_float convert (uint16_t v)
 
static half_float convert (half_float v)
 
static half_float convert (float v)
 
static half_float grayscale (half_float r, half_float g, half_float b)
 
static float premultiply (float c, float a)
 
static float inverse (float c)
 

Member Typedef Documentation

typedef float cinder::CHANTRAIT< half_float >::Sum
typedef float cinder::CHANTRAIT< half_float >::Accum

Member Function Documentation

static half_float cinder::CHANTRAIT< half_float >::max ( )
static
static half_float cinder::CHANTRAIT< half_float >::convert ( uint8_t  v)
static
static half_float cinder::CHANTRAIT< half_float >::convert ( uint16_t  v)
static
static half_float cinder::CHANTRAIT< half_float >::convert ( half_float  v)
static
static half_float cinder::CHANTRAIT< half_float >::convert ( float  v)
static
static half_float cinder::CHANTRAIT< half_float >::grayscale ( half_float  r,
half_float  g,
half_float  b 
)
static
static float cinder::CHANTRAIT< half_float >::premultiply ( float  c,
float  a 
)
static

Calculates the multiplied version of a color component c by alpha a.

static float cinder::CHANTRAIT< half_float >::inverse ( float  c)
static

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