{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

@ -61,6 +61,7 @@ pub fn deinit(game: *Mod) void {
// TODO(important): remove need for returning an error here
fn tick(core: *mach.Core.Mod, game: *Mod) !void {
// TODO(important): event polling should occur in mach.Core module and get fired as ECS event.
// TODO(Core)
var iter = mach.core.pollEvents();
while (iter.next()) |event| {
switch (event) {
@ -70,6 +71,7 @@ fn tick(core: *mach.Core.Mod, game: *Mod) !void {
}
// Grab the back buffer of the swapchain
// TODO(Core)
const back_buffer_view = mach.core.swap_chain.getCurrentTextureView().?;
defer back_buffer_view.release();
@ -119,6 +121,7 @@ fn updateWindowTitle(core: *mach.Core.Mod) !void {
core.state().main_window,
"core-custom-entrypoint [ {d}fps ] [ Input {d}hz ]",
.{
// TODO(Core)
mach.core.frameRate(),
mach.core.inputRate(),
},