{Core,examples}: add TODO markers for core APIs that require module exposure

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-04-22 05:37:13 -07:00 committed by Stephen Gutekanst
parent 03a089610b
commit 4a000c7995
9 changed files with 17 additions and 3 deletions

View file

@ -78,6 +78,7 @@ fn tick(
audio: *mach.Audio.Mod,
piano: *Mod,
) !void {
// TODO(Core)
var iter = mach.core.pollEvents();
while (iter.next()) |event| {
switch (event) {
@ -111,6 +112,7 @@ fn tick(
}
// Grab the back buffer of the swapchain
// TODO(Core)
const back_buffer_view = mach.core.swap_chain.getCurrentTextureView().?;
defer back_buffer_view.release();
@ -174,6 +176,7 @@ fn fillTone(audio: *mach.Audio.Mod, frequency: f32) ![]const f32 {
return samples;
}
// TODO(Core)
fn keyToFrequency(key: mach.core.Key) f32 {
// The frequencies here just come from a piano frequencies chart. You can google for them.
return switch (key) {