TGX 1.1.1
A tiny 2D/3D graphics library optimized for 32 bits microcontrollers.
Loading...
Searching...
No Matches
tgx_config.h File Reference

Configuration file depending on the architecture. More...

Go to the source code of this file.

Macros

#define TGX_USE_FAST_INV_TRICK   1
 Enable the fast approximate inverse trick on architectures where it is beneficial. More...
 
#define TGX_USE_FMA_MATH   1
 Use explicit fused multiply-add instructions in selected floating-point math helpers when this improves performance on the target architecture. More...
 
#define TGX_SINGLE_PRECISION_COMPUTATIONS   1
 Set to 1 to use float as the default floating point type, or to 0 to use double precision.
 
#define TGX_DEFAULT_NO_BLENDING   -1.0f
 Default opacity sentinel used by drawing primitives to request overwrite/no-blending mode.
 
#define TGX_MESHLET_SPHERE_CLIP   1
 Set to 1 to let Mesh3Dv2 skip per-triangle clipping for meshlets whose bounding sphere is fully inside the frustum, and discard meshlets fully outside.
 
#define TGX_MESHLET_WIREFRAME_CULL   1
 Set to 1 to let Mesh3Dv2 wireframe rendering discard meshlets using their visibility cones.
 

Detailed Description

Configuration file depending on the architecture.

Macro Definition Documentation

◆ TGX_USE_FAST_INV_TRICK

#define TGX_USE_FAST_INV_TRICK   1

Enable the fast approximate inverse trick on architectures where it is beneficial.

This is selected automatically from the target board/architecture below.

◆ TGX_USE_FMA_MATH

#define TGX_USE_FMA_MATH   1

Use explicit fused multiply-add instructions in selected floating-point math helpers when this improves performance on the target architecture.

This is selected automatically from the target board/architecture below.