Fluid
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
Fluid::SceneGraph Namespace Reference

Classes

struct  BasicVertex
 
class  ElevationMaterial
 
class  ElevationNode
 
class  ElevationShader
 
class  RectangleMaterial
 
class  RectangleNode
 
class  RectangleShader
 
struct  RectangleVertex
 
struct  ShadowParams
 
struct  ShadowVertex
 

Enumerations

enum  ShadowFlags {
  None_ShadowFlag = 0x00 , TransparentOccluder_ShadowFlag = 0x01 , GeometricOnly_ShadowFlag = 0x02 , DirectionalLight_ShadowFlag = 0x04 ,
  ConcaveBlurOnly_ShadowFlag = 0x08 , All_ShadowFlag = 0x0F
}
 

Functions

std::unique_ptr< QSGGeometry, std::default_delete< QSGGeometry > > createRectangleGeometry ()
 
void updateRectangleGeometry (RectangleVertex *vertexs, QVector2D size, QRgb color, QVector4D radius)
 
std::unique_ptr< QSGGeometry, std::default_delete< QSGGeometry > > createShadowGeometry ()
 
void updateShadowGeometry (QSGGeometry *geo, const ShadowParams &params, const QRectF &rect)
 

Enumeration Type Documentation

◆ ShadowFlags

Enumerator
None_ShadowFlag 
TransparentOccluder_ShadowFlag 

The occluding object is not opaque. Knowing that the occluder is opaque allows us to cull shadow geometry behind it and improve performance.

GeometricOnly_ShadowFlag 

Don't try to use analytic shadows.

DirectionalLight_ShadowFlag 

Light position represents a direction, light radius is blur radius at elevation 1

ConcaveBlurOnly_ShadowFlag 

Concave paths will only use blur to generate the shadow

All_ShadowFlag 

mask for all shadow flags

Function Documentation

◆ createRectangleGeometry()

std::unique_ptr< QSGGeometry, std::default_delete< QSGGeometry > > Fluid::SceneGraph::createRectangleGeometry ( )

◆ createShadowGeometry()

std::unique_ptr< QSGGeometry, std::default_delete< QSGGeometry > > Fluid::SceneGraph::createShadowGeometry ( )

◆ updateRectangleGeometry()

void Fluid::SceneGraph::updateRectangleGeometry ( RectangleVertex vertexs,
QVector2D  size,
QRgb  color,
QVector4D  radius 
)

◆ updateShadowGeometry()

void Fluid::SceneGraph::updateShadowGeometry ( QSGGeometry *  geo,
const ShadowParams params,
const QRectF &  rect 
)