ArborealAudio / arbor

Easy-to-use audio plugin framework
https://arborealaudio.com
MIT License
27 stars 0 forks source link

Only use floats where necessary in GUI logic #4

Closed ArborealAudio closed 2 months ago

ArborealAudio commented 2 months ago

In general, you should probably only need integers to do UI code. The major exception is working with graphics APIs. But a lot of the work that the CPU will do revolves around coordinates which are always discrete.

Our internal vectors and rectangles should primarily be i32/u32 variants (or u16???), only converting to float when it's truly necessary for some final drawing operation (probably involving vertices etc.)