Blender V4.3
GWL_ScaledFixedT Struct Reference

Public Attributes

wl_fixed_t value = 0
 
wl_fixed_t factor = 1
 

Detailed Description

Utility struct to access rounded values from a scaled wl_fixed_t, without loosing information.

As the rounded result is rounded to a lower precision integer, the high precision value is accumulated and converted to an integer to prevent the accumulation of rounded values giving an inaccurate result.

Note
This is simple but doesn't read well when expanded multiple times inline.

Definition at line 856 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ factor

wl_fixed_t GWL_ScaledFixedT::factor = 1

◆ value

wl_fixed_t GWL_ScaledFixedT::value = 0

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