Definition at line 17 of file LightingBench.cpp.
◆ INHERITED
◆ LightingBaseBench()
LightingBaseBench::LightingBaseBench |
( |
bool |
small | ) |
|
|
inline |
◆ draw()
Definition at line 22 of file LightingBench.cpp.
22 {
26 paint.setImageFilter(std::move(imageFilter));
27 for (
int i = 0;
i < loops;
i++) {
29 }
30 }
#define FILTER_WIDTH_SMALL
#define FILTER_WIDTH_LARGE
#define FILTER_HEIGHT_SMALL
#define FILTER_HEIGHT_LARGE
void drawRect(const SkRect &rect, const SkPaint &paint)
static constexpr SkRect MakeWH(float w, float h)
◆ GetCutoffAngle()
static SkScalar LightingBaseBench::GetCutoffAngle |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetDistantDirection()
static SkPoint3 LightingBaseBench::GetDistantDirection |
( |
| ) |
|
|
inlinestaticprotected |
Definition at line 37 of file LightingBench.cpp.
37 {
44 return distantDirection;
45 }
#define SkDegreesToRadians(degrees)
#define SkScalarSin(radians)
#define SkScalarCos(radians)
static SkPoint3 Make(SkScalar x, SkScalar y, SkScalar z)
◆ GetKd()
static SkScalar LightingBaseBench::GetKd |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetKs()
static SkScalar LightingBaseBench::GetKs |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetPointLocation()
static SkPoint3 LightingBaseBench::GetPointLocation |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetShininess()
static SkScalar LightingBaseBench::GetShininess |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetSpotExponent()
static SkScalar LightingBaseBench::GetSpotExponent |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetSpotLocation()
static SkPoint3 LightingBaseBench::GetSpotLocation |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetSpotTarget()
static SkPoint3 LightingBaseBench::GetSpotTarget |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetSurfaceScale()
static SkScalar LightingBaseBench::GetSurfaceScale |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetWhite()
static SkColor LightingBaseBench::GetWhite |
( |
| ) |
|
|
inlinestaticprotected |
◆ fIsSmall
bool LightingBaseBench::fIsSmall |
|
protected |
The documentation for this class was generated from the following file: