Gamp v0.0.7-54-gccdc599
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
Gamp Graph

Basic Graph Framework. More...

Classes

class  gamp::graph::tess::GLUtilTesselator
 GLUtilTesselator transform OutlineShapes to triangles using glutess2. More...
 
class  gamp::graph::Graph
 
class  gamp::graph::gl::GraphRegion
 
class  gamp::graph::gl::GraphRenderer
 OpenGL GraphRenderer. More...
 
class  gamp::graph::Outline
 Define a single continuous stroke by control vertices. More...
 
class  gamp::graph::OutlineShape
 A Generic shape objects which is defined by a list of Outlines. More...
 
class  gamp::graph::gl::RegionRenderer
 OpenGL Region renderer. More...
 
class  gamp::graph::gl::RenderNames
 
class  gamp::graph::gl::RenderState
 The RenderState is owned by GraphRenderer. More...
 
class  gamp::graph::Triangle
 
class  gamp::graph::Vertex
 

Typedefs

typedef jau::darray< Outline, uint32_t > gamp::graph::OutlineList
 
typedef std::shared_ptr< Trianglegamp::graph::TriangleRef
 
typedef jau::darray< TriangleRef, uint32_t > gamp::graph::TriangleRefList
 
typedef jau::darray< Vertex, uint32_t > gamp::graph::VertexList
 

Enumerations

enum class  gamp::graph::RenderMode : uint16_t {
  gamp::graph::RenderMode::none = 0 , gamp::graph::RenderMode::msaa = 1 << 0 , gamp::graph::RenderMode::vbaa = 1 << 1 , gamp::graph::RenderMode::aa_mask = msaa | vbaa ,
  gamp::graph::RenderMode::varweight = 1 << 8 , gamp::graph::RenderMode::normalchannel = 1 << 9 , gamp::graph::RenderMode::colorchannel = 1 << 10 , gamp::graph::RenderMode::colortexture = 1 << 11 ,
  gamp::graph::RenderMode::light0 = 1 << 12
}
 Render mode bits being part of the shader-selection-key. More...
 

Functions

constexpr bool gamp::graph::hasColorChannel (RenderMode m) noexcept
 
constexpr bool gamp::graph::hasColorTexture (RenderMode renderMode) noexcept
 Returns true if render mode has a color texture, i.e.
 
constexpr bool gamp::graph::hasLight0 (RenderMode m) noexcept
 
constexpr bool gamp::graph::hasNormalChannel (RenderMode m) noexcept
 
constexpr bool gamp::graph::hasVariableWeight (RenderMode renderMode) noexcept
 
constexpr bool gamp::graph::isGraphAA (RenderMode renderMode) noexcept
 Returns true if given renderModes has any of RenderMode::aa_mask set.
 
constexpr bool gamp::graph::isMSAA (RenderMode renderMode) noexcept
 Returns true if given renderModes has RenderMode::msaa set.
 
constexpr bool gamp::graph::isTwoPass (RenderMode renderMode) noexcept
 Returns true if given renderModes has any of RenderMode::aa_mask set.
 
constexpr bool gamp::graph::isVBAA (RenderMode renderMode) noexcept
 Returns true if given renderModes has RenderMode::vbaa set.
 
 gamp::graph::JAU_MAKE_BITFIELD_ENUM_STRING (RenderMode, msaa, vbaa, varweight, normalchannel, colorchannel, colortexture, light0)
 

Detailed Description

Basic Graph Framework.

Typedef Documentation

◆ OutlineList

Definition at line 320 of file Outline.hpp.

◆ VertexList

Examples
GraphShapes01.cpp.

Definition at line 124 of file PrimTypes.hpp.

◆ TriangleRef

typedef std::shared_ptr<Triangle> gamp::graph::TriangleRef
Examples
GraphShapes01.cpp.

Definition at line 127 of file PrimTypes.hpp.

◆ TriangleRefList

Examples
GraphShapes01.cpp.

Definition at line 128 of file PrimTypes.hpp.

Enumeration Type Documentation

◆ RenderMode

enum class gamp::graph::RenderMode : uint16_t
strong

Render mode bits being part of the shader-selection-key.

See also
renderMode()
Enumerator
none 

One pass none rendering either using no AA or underlying full-screen AA (fsaa) nor extra channels nor data.

msaa 

MSAA based Anti-Aliasing, a two pass region rendering, slower and more resource hungry (FBO with sample buffer), but providing fast MSAA in case the whole scene is not rendered with MSAA.

In case sample count is 1, no FBO sample buffer is used but a simple bilinear texture filter.

vbaa 

View based Anti-Aliasing, a two pass region rendering, slower and more resource hungry (FBO), but AA is perfect.

Otherwise the default fast one pass MSAA region rendering is being used.

In case sample count is 1, no FBO supersampling is performed but a simple bilinear texture filter used.

Depending on AA-quality, MAX_AA_QUALITY denotes full 4x billinear filtering per sample and 0 denotes 1x flipquad filtering per sample.

aa_mask 

2-pass rendering bit-mask including RenderBits::msaa and RenderBits::vbaa.

varweight 

Use non uniform weights [0.0 .

. 1.9] for curve region rendering. Otherwise the default weight 1.0 for uniform curve region rendering is being applied.

normalchannel 

If set, a full normal channel attribute per vertex is added to the stream.

colorchannel 

If set, a color channel attribute per vertex is added to the stream, otherwise static color can being used for a monotonic color.

colortexture 

If set, a color texture is used to determine the color via TextureSequence passed to the implementation.

See also
TextureSequence::useARatioAdjustment()
TextureSequence::useARatioLetterbox()
light0 

Enable light0, implies normalchannel.

Definition at line 31 of file RenderMode.hpp.

Function Documentation

◆ JAU_MAKE_BITFIELD_ENUM_STRING()

gamp::graph::JAU_MAKE_BITFIELD_ENUM_STRING ( RenderMode ,
msaa ,
vbaa ,
varweight ,
normalchannel ,
colorchannel ,
colortexture ,
light0  )

◆ isVBAA()

bool gamp::graph::isVBAA ( RenderMode renderMode)
inlineconstexprnoexcept

Returns true if given renderModes has RenderMode::vbaa set.

Definition at line 92 of file RenderMode.hpp.

◆ isMSAA()

bool gamp::graph::isMSAA ( RenderMode renderMode)
inlineconstexprnoexcept

Returns true if given renderModes has RenderMode::msaa set.

Definition at line 95 of file RenderMode.hpp.

◆ isGraphAA()

bool gamp::graph::isGraphAA ( RenderMode renderMode)
inlineconstexprnoexcept

Returns true if given renderModes has any of RenderMode::aa_mask set.

Definition at line 98 of file RenderMode.hpp.

Here is the caller graph for this function:

◆ isTwoPass()

bool gamp::graph::isTwoPass ( RenderMode renderMode)
inlineconstexprnoexcept

Returns true if given renderModes has any of RenderMode::aa_mask set.

Definition at line 101 of file RenderMode.hpp.

◆ hasVariableWeight()

bool gamp::graph::hasVariableWeight ( RenderMode renderMode)
inlineconstexprnoexcept

Definition at line 103 of file RenderMode.hpp.

Here is the caller graph for this function:

◆ hasNormalChannel()

bool gamp::graph::hasNormalChannel ( RenderMode m)
inlineconstexprnoexcept

Definition at line 105 of file RenderMode.hpp.

Here is the caller graph for this function:

◆ hasColorChannel()

bool gamp::graph::hasColorChannel ( RenderMode m)
inlineconstexprnoexcept

Definition at line 106 of file RenderMode.hpp.

Here is the caller graph for this function:

◆ hasColorTexture()

bool gamp::graph::hasColorTexture ( RenderMode renderMode)
inlineconstexprnoexcept

Returns true if render mode has a color texture, i.e.

the bit COLORTEXTURE_RENDERING_BIT is set, otherwise false.

Definition at line 113 of file RenderMode.hpp.

◆ hasLight0()

bool gamp::graph::hasLight0 ( RenderMode m)
inlineconstexprnoexcept

Definition at line 115 of file RenderMode.hpp.