3ds Max C++ API Reference
IPhysicalCamera_BitmapApertureSampler::RGBValue Struct Reference

A simple RGB color value. the Max SDK's Color class couldn't be used since we want to remain independent from the rest of the Max SDK. More...

#include <IPhysicalCamera_BitmapApertureSampler.h>

Public Member Functions

 RGBValue ()
 
 RGBValue (const float r, const float g, const float b)
 
void operator*= (const float v)
 

Public Attributes

float r
 
float g
 
float b
 

Detailed Description

A simple RGB color value. the Max SDK's Color class couldn't be used since we want to remain independent from the rest of the Max SDK.

Constructor & Destructor Documentation

◆ RGBValue() [1/2]

RGBValue ( )
inline
58 {
59 }

◆ RGBValue() [2/2]

RGBValue ( const float  r,
const float  g,
const float  b 
)
inline
62  : r(p_r), g(p_g), b(p_b)
63 {
64 }
float r
Definition: IPhysicalCamera_BitmapApertureSampler.h:41
float b
Definition: IPhysicalCamera_BitmapApertureSampler.h:41
float g
Definition: IPhysicalCamera_BitmapApertureSampler.h:41

Member Function Documentation

◆ operator*=()

void operator*= ( const float  v)
inline
67 {
68  r *= v;
69  g *= v;
70  b *= v;
71 }

Member Data Documentation

◆ r

float r

◆ g

float g

◆ b

float b