Skia
2DGraphicsLibrary
|
Public Types | |
enum | LightType { kAmbient_LightType, kDirectional_LightType, kPoint_LightType } |
Public Member Functions | |
Light (const Light &other) | |
Light (Light &&other) | |
LightType | type () const |
const SkColor3f & | color () const |
const SkVector3 & | dir () const |
const SkPoint3 & | pos () const |
void | setShadowMap (sk_sp< SkImage > shadowMap) |
SkImage * | getShadowMap () const |
Light & | operator= (const Light &b) |
bool | operator== (const Light &b) |
bool | operator!= (const Light &b) |
Static Public Member Functions | |
static Light | MakeAmbient (const SkColor3f &color) |
static Light | MakeDirectional (const SkColor3f &color, const SkVector3 &dir) |
static Light | MakePoint (const SkColor3f &color, const SkPoint3 &pos) |
Private Member Functions | |
Light (LightType type, const SkColor3f &color, const SkVector3 &dir) | |
Private Attributes | |
LightType | fType |
SkColor3f | fColor |
SkVector3 | fDirection |
sk_sp< SkImage > | fShadowMap |