Gamp v0.0.7-54-gccdc599
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
gamp::graph::tess::GLUtilTesselator Class Reference

GLUtilTesselator transform OutlineShapes to triangles using glutess2. More...

#include <GLUTesselator.hpp>

Collaboration diagram for gamp::graph::tess::GLUtilTesselator:

Classes

struct  Segment
 

Public Types

typedef std::vector< SegmentSegmentList
 

Public Member Functions

 GLUtilTesselator (int flags, GLFloatArrayDataServer &array) noexcept
 
void clear ()
 Clears all internal data, not passed array or indices.
 
jau::nsize_t elementCount () const noexcept
 
bool empty () const noexcept
 Returns true if segments() is empty.
 
constexpr const std::vector< Segment > & segments () const noexcept
 
const SegmentListtesselate (OutlineShape &outlines)
 
constexpr bool useColor () const noexcept
 
constexpr bool useNormal () const noexcept
 
constexpr bool useTexture () const noexcept
 
constexpr bool verbose () const noexcept
 

Static Public Member Functions

static SegmentList tesselate (int flags, GLFloatArrayDataServer &array, OutlineShape &outlines)
 

Static Public Attributes

static constexpr int FLAG_COLOR = 1 << 1
 
static constexpr int FLAG_NORMAL = 1 << 0
 
static constexpr int FLAG_TEXTURE = 1 << 2
 
static constexpr int FLAG_VERBOSE = 1 << 3
 

Detailed Description

GLUtilTesselator transform OutlineShapes to triangles using glutess2.

Definition at line 49 of file GLUTesselator.hpp.

Member Typedef Documentation

◆ SegmentList

Definition at line 57 of file GLUTesselator.hpp.

Constructor & Destructor Documentation

◆ GLUtilTesselator()

gamp::graph::tess::GLUtilTesselator::GLUtilTesselator ( int flags,
GLFloatArrayDataServer & array )
inlinenoexcept

Definition at line 104 of file GLUTesselator.hpp.

Here is the caller graph for this function:

Member Function Documentation

◆ useNormal()

bool gamp::graph::tess::GLUtilTesselator::useNormal ( ) const
inlineconstexprnoexcept

Definition at line 109 of file GLUTesselator.hpp.

◆ useColor()

bool gamp::graph::tess::GLUtilTesselator::useColor ( ) const
inlineconstexprnoexcept

Definition at line 110 of file GLUTesselator.hpp.

◆ useTexture()

bool gamp::graph::tess::GLUtilTesselator::useTexture ( ) const
inlineconstexprnoexcept

Definition at line 111 of file GLUTesselator.hpp.

◆ verbose()

bool gamp::graph::tess::GLUtilTesselator::verbose ( ) const
inlineconstexprnoexcept

Definition at line 112 of file GLUTesselator.hpp.

Here is the caller graph for this function:

◆ clear()

void gamp::graph::tess::GLUtilTesselator::clear ( )
inline

Clears all internal data, not passed array or indices.

Definition at line 115 of file GLUTesselator.hpp.

Here is the caller graph for this function:

◆ empty()

bool gamp::graph::tess::GLUtilTesselator::empty ( ) const
inlinenoexcept

Returns true if segments() is empty.

Definition at line 123 of file GLUTesselator.hpp.

Here is the caller graph for this function:

◆ elementCount()

jau::nsize_t gamp::graph::tess::GLUtilTesselator::elementCount ( ) const
inlinenoexcept

Definition at line 125 of file GLUTesselator.hpp.

◆ segments()

const std::vector< Segment > & gamp::graph::tess::GLUtilTesselator::segments ( ) const
inlineconstexprnoexcept

Definition at line 127 of file GLUTesselator.hpp.

Here is the caller graph for this function:

◆ tesselate() [1/2]

static SegmentList gamp::graph::tess::GLUtilTesselator::tesselate ( int flags,
GLFloatArrayDataServer & array,
OutlineShape & outlines )
inlinestatic

Definition at line 188 of file GLUTesselator.hpp.

Here is the caller graph for this function:

◆ tesselate() [2/2]

const SegmentList & gamp::graph::tess::GLUtilTesselator::tesselate ( OutlineShape & outlines)
inline

Definition at line 192 of file GLUTesselator.hpp.

Member Data Documentation

◆ FLAG_NORMAL

int gamp::graph::tess::GLUtilTesselator::FLAG_NORMAL = 1 << 0
staticconstexpr

Definition at line 51 of file GLUTesselator.hpp.

◆ FLAG_COLOR

int gamp::graph::tess::GLUtilTesselator::FLAG_COLOR = 1 << 1
staticconstexpr

Definition at line 52 of file GLUTesselator.hpp.

◆ FLAG_TEXTURE

int gamp::graph::tess::GLUtilTesselator::FLAG_TEXTURE = 1 << 2
staticconstexpr

Definition at line 53 of file GLUTesselator.hpp.

◆ FLAG_VERBOSE

int gamp::graph::tess::GLUtilTesselator::FLAG_VERBOSE = 1 << 3
staticconstexpr

Definition at line 54 of file GLUTesselator.hpp.


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