Flutter Engine
The Flutter Engine
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)
Definition: Tessellation.h:162

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;
165 }
float GetJoinType(const SkStrokeRec &stroke)
Definition: Tessellation.h:146

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: