Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Enumerations
SkShadowUtils.h File Reference
#include "include/core/SkColor.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include <cstdint>

Go to the source code of this file.

Classes

class  SkShadowUtils
 

Enumerations

enum  SkShadowFlags {
  kNone_ShadowFlag = 0x00 , kTransparentOccluder_ShadowFlag = 0x01 , kGeometricOnly_ShadowFlag = 0x02 , kDirectionalLight_ShadowFlag = 0x04 ,
  kConcaveBlurOnly_ShadowFlag = 0x08 , kAll_ShadowFlag = 0x0F
}
 

Enumeration Type Documentation

◆ SkShadowFlags

Enumerator
kNone_ShadowFlag 
kTransparentOccluder_ShadowFlag 

The occluding object is not opaque. Knowing that the occluder is opaque allows us to cull shadow geometry behind it and improve performance.

kGeometricOnly_ShadowFlag 

Don't try to use analytic shadows.

kDirectionalLight_ShadowFlag 

Light position represents a direction, light radius is blur radius at elevation 1

kConcaveBlurOnly_ShadowFlag 

Concave paths will only use blur to generate the shadow

kAll_ShadowFlag 

mask for all shadow flags

Definition at line 23 of file SkShadowUtils.h.

23 {
24 kNone_ShadowFlag = 0x00,
25 /** The occluding object is not opaque. Knowing that the occluder is opaque allows
26 * us to cull shadow geometry behind it and improve performance. */
28 /** Don't try to use analytic shadows. */
30 /** Light position represents a direction, light radius is blur radius at elevation 1 */
32 /** Concave paths will only use blur to generate the shadow */
34 /** mask for all shadow flags */
35 kAll_ShadowFlag = 0x0F
36};
@ kAll_ShadowFlag
@ kDirectionalLight_ShadowFlag
@ kConcaveBlurOnly_ShadowFlag
@ kGeometricOnly_ShadowFlag
@ kTransparentOccluder_ShadowFlag
@ kNone_ShadowFlag