Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkLights::Light Class Reference

Public Types

enum  LightType { kAmbient_LightType, kDirectional_LightType, kPoint_LightType }
 

Public Member Functions

 Light (const Light &other)
 
 Light (Light &&other)
 
LightType type () const
 
const SkColor3fcolor () const
 
const SkVector3dir () const
 
const SkPoint3pos () const
 
void setShadowMap (sk_sp< SkImage > shadowMap)
 
SkImagegetShadowMap () const
 
Lightoperator= (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< SkImagefShadowMap
 

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