Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Friends | List of all members
impeller::Tessellator::EllipticalVertexGenerator Class Reference

The |VertexGenerator| implementation common to all shapes that are based on a polygonal representation of an ellipse. More...

#include <tessellator.h>

Inheritance diagram for impeller::Tessellator::EllipticalVertexGenerator:
impeller::Tessellator::VertexGenerator

Public Member Functions

PrimitiveType GetTriangleType () const override
 |VertexGenerator| More...
 
size_t GetVertexCount () const override
 |VertexGenerator| More...
 
void GenerateVertices (const TessellatedVertexProc &proc) const override
 |VertexGenerator| More...
 
virtual PrimitiveType GetTriangleType () const =0
 Returns the |PrimitiveType| that describes the relationship among the list of vertices produced by the |GenerateVertices| method. More...
 
virtual size_t GetVertexCount () const =0
 Returns the number of vertices that the generator plans to produce, if known. More...
 
virtual void GenerateVertices (const TessellatedVertexProc &proc) const =0
 Generate the vertices and deliver them in the necessary order (as required by the PrimitiveType) to the given callback function. More...
 

Friends

class Tessellator
 

Detailed Description

The |VertexGenerator| implementation common to all shapes that are based on a polygonal representation of an ellipse.

Definition at line 121 of file tessellator.h.

Member Function Documentation

◆ GenerateVertices()

void impeller::Tessellator::EllipticalVertexGenerator::GenerateVertices ( const TessellatedVertexProc proc) const
inlineoverridevirtual

|VertexGenerator|

Implements impeller::Tessellator::VertexGenerator.

Definition at line 134 of file tessellator.h.

134 {
135 impl_(trigs_, data_, proc);
136 }

◆ GetTriangleType()

PrimitiveType impeller::Tessellator::EllipticalVertexGenerator::GetTriangleType ( ) const
inlineoverridevirtual

|VertexGenerator|

Implements impeller::Tessellator::VertexGenerator.

Definition at line 124 of file tessellator.h.

◆ GetVertexCount()

size_t impeller::Tessellator::EllipticalVertexGenerator::GetVertexCount ( ) const
inlineoverridevirtual

|VertexGenerator|

Implements impeller::Tessellator::VertexGenerator.

Definition at line 129 of file tessellator.h.

129 {
130 return trigs_.size() * vertices_per_trig_;
131 }

Friends And Related Function Documentation

◆ Tessellator

friend class Tessellator
friend

Definition at line 139 of file tessellator.h.


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