Gamp v0.0.7-36-g24b1eb6
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
 
 GLUtilTesselator (int flags, GLFloatArrayDataServer &array, GLUIntArrayDataServer *indices) 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 useIndices () 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, GLUIntArrayDataServer *indices, OutlineShape &outlines)
 
static SegmentList tesselate (int flags, GLFloatArrayDataServer &array, OutlineShape &outlines)
 

Static Public Attributes

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

Detailed Description

GLUtilTesselator transform OutlineShapes to triangles using glutess2.

Definition at line 49 of file GLUTesselator.hpp.

Member Typedef Documentation

◆ SegmentList

Definition at line 58 of file GLUTesselator.hpp.

Constructor & Destructor Documentation

◆ GLUtilTesselator() [1/2]

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

Definition at line 106 of file GLUTesselator.hpp.

Here is the caller graph for this function:

◆ GLUtilTesselator() [2/2]

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

Definition at line 109 of file GLUTesselator.hpp.

Member Function Documentation

◆ useNormal()

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

Definition at line 118 of file GLUTesselator.hpp.

◆ useColor()

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

Definition at line 119 of file GLUTesselator.hpp.

◆ useTexture()

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

Definition at line 120 of file GLUTesselator.hpp.

◆ useIndices()

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

Definition at line 121 of file GLUTesselator.hpp.

◆ verbose()

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

Definition at line 122 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 125 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 133 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 135 of file GLUTesselator.hpp.

◆ segments()

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

Definition at line 137 of file GLUTesselator.hpp.

Here is the caller graph for this function:

◆ tesselate() [1/3]

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

Definition at line 201 of file GLUTesselator.hpp.

Here is the caller graph for this function:

◆ tesselate() [2/3]

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

Definition at line 205 of file GLUTesselator.hpp.

◆ tesselate() [3/3]

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

Definition at line 209 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_INDICES

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

Definition at line 54 of file GLUTesselator.hpp.

◆ FLAG_VERBOSE

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

Definition at line 55 of file GLUTesselator.hpp.


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