openAVproductions / openAV-Ctlra

A plain C library to program with hardware controllers.
BSD 3-Clause "New" or "Revised" License
78 stars 16 forks source link

device/avtka: Add screen capabilities #65

Closed harryhaaren closed 6 years ago

harryhaaren commented 6 years ago

These changes enable basic functionality of a screen being shown up on the virtual device UIs. This allows developers to prototype code for controllers they don't have access to, and debug problems even when there's no hardware available.

Note that this branch requires the latest AVTKA code, as per this pull request: https://github.com/openAVproductions/openAV-avtka/pull/5

Until that pull request hits mainline AVTKA, this PR is not expected to build.

harryhaaren commented 6 years ago

Some progress here, reworked the screen APIs to be callback based. This makes more sense than each application squashing as many screen updates in a second and wasting all the eg: USB bandwidth. With proper control over FPS and damaged regions, we can optimize what needs to be sent to the device, and only push that down the cable.