Run the original macOS ARM64 game code on iOS: - tools/retarget.py: header-only Mach-O retargeting to an iOS dylib - platform/native: UIKit host and macOS API shims (AppKit for SDL's Cocoa backend, CoreGraphics displays, CoreAudio device, Metal device properties, Wuffs PNG decoding, Steam and peripheral stubs) - touch, overlay, iOS keyboard and hardware keyboard input - tools/build_native.py: build, sign, install, data copy, launch - docs: build guide, controls, architecture Also includes the earlier static-translation research (ARM64 -> WASM -> native) under docs/research, runtime/, tests/ and tools/. No game files are included; the build reads them from a local install.
7 lines
319 B
C
7 lines
319 B
C
// Exact PNG decoding for common 8-bit formats; see pngdecode.c.
|
|
#pragma once
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
// On success returns 1 and a malloc'd buffer (caller frees) of width*height*channels bytes.
|
|
int fx_png_decode(const uint8_t *data, size_t size, uint8_t **out, int *width, int *height, int *channels);
|