Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
skgpu::tess::StrokeParams Struct Reference

#include <Tessellation.h>

Public Member Functions

 StrokeParams ()=default
 
 StrokeParams (float radius, float joinType)
 
 StrokeParams (const SkStrokeRec &stroke)
 
void set (const SkStrokeRec &stroke)
 

Public Attributes

float fRadius
 
float fJoinType
 

Detailed Description

Definition at line 156 of file Tessellation.h.

Constructor & Destructor Documentation

◆ StrokeParams() [1/3]

skgpu::tess::StrokeParams::StrokeParams ( )
default

◆ StrokeParams() [2/3]

skgpu::tess::StrokeParams::StrokeParams ( float  radius,
float  joinType 
)
inline

Definition at line 158 of file Tessellation.h.

158: fRadius(radius), fJoinType(joinType) {}

◆ StrokeParams() [3/3]

skgpu::tess::StrokeParams::StrokeParams ( const SkStrokeRec stroke)
inline

Definition at line 159 of file Tessellation.h.

159 {
160 this->set(stroke);
161 }
void set(const SkStrokeRec &stroke)

Member Function Documentation

◆ set()

void skgpu::tess::StrokeParams::set ( const SkStrokeRec stroke)
inline

Definition at line 162 of file Tessellation.h.

162 {
163 fRadius = stroke.getWidth() * .5f;
164 fJoinType = GetJoinType(stroke);
165 }
SkScalar getWidth() const
Definition SkStrokeRec.h:42
float GetJoinType(const SkStrokeRec &stroke)

Member Data Documentation

◆ fJoinType

float skgpu::tess::StrokeParams::fJoinType

Definition at line 168 of file Tessellation.h.

◆ fRadius

float skgpu::tess::StrokeParams::fRadius

Definition at line 167 of file Tessellation.h.


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