Releases: twiddlingbits/twr-wasm
Version 2.5.0
add new audio C API (see https://twiddlingbits.dev/docsite/api/api-c-audio/ )
add new timer C API (see https://twiddlingbits.dev/docsite/api/api-c-general/#twr_timer_single_shot )
add some new Draw 2D C/C++ APIs (see https://twiddlingbits.dev/docsite/api/api-c-d2d/ )
add twrLibrary
TypeScript class which can be extended to add your own TypeScript APIs to C/C++ (see https://twiddlingbits.dev/docsite/api/api-ts-library/ )
add basic C event framework (see https://twiddlingbits.dev/docsite/gettingstarted/events/ )
moved wasm mem access to new wasmMem
class
update pong example to support two player modes with AI (see https://twiddlingbits.dev/docsite/examples/examples-pong/ )
update pong example to add audio
add more test cases
add %u
to printf
misc updates and bug fixes
update documentation
npm released
Version 2.4.2
Improved Draw 2D API
- Added several new APIs - see https://twiddlingbits.dev/docsite/api/api-c-d2d/
- Added load image and draw image D2D calls
- Added async Pong (for testing)
Fix callC bug in twrWasmModuleAsync
- crash on multiple simultaneous in-flight callC
Improved local development
- env. server.py method now works with bundled & unbundled examples.
- Note: execute 'python examples/server.py' while in the repo root.
Rename stdio-div example to divcon
Rename stdio-canvas example to terminal
Improve stdio-canvas demo
Improve twrConsoleXXX parameter validation
Fix keyDown code to be more correct
Updated docs
Version 2.4.1
Changed all files to use LF for end of line so that shell scripts work more reliably on linux.
Version 2.4.0
Fixed major bug where backspace was not working in Div Console in many cases
Added many new Draw 2D APIs to existing 2D2 API
- For a list of commands see: https://twiddlingbits.dev/docsite/api/api-c-d2d/
- Passing strings args to D2D API now more robust
Update Console support:
- Consoles are now implemented in TypeScript and run in the main JavaScript event loop thread
- Can now print to Console from JavaScript (as well as from C/C++)
- Multiple Console support
- Multiple wasm modules can use the same Console
- Draw 2D Surface is now a Console
- Added multi-io example (multiple consoles, multiple console types, multiple wasm modules)
- Added io_setfocus, and other misc APIs
Example folder buildall.sh script now builds source if needed
remove warning on zero size mallocs (which are legal)
Misc documentation updates
Misc bug fixes
Version 2.3.1
- fix shell script error that caused scripts to fail on linux
- Added "reset" and "ClosePath" 2D Draw APIs
- fix bug in D2D_SETLINEWIDTH (a 2D Draw API)
- add Pong Game example of 2D API
- improve documentation
- npm published
Version 2.2.1
This version is identical to 2.2.0.
The version number was incremented to fix an npm publish issue
Version 2.2.0
add support for int64_t parameters and return types (using JS bigint)
rename ModInWorker to ModAsyncProxy
update callC example
minor include, comment and spelling fixes
switch docs to material theme
many doc updates
examples: text updates; add meta descriptions
add robots.txt to web site
npm published
Version 2.1.1
fix bug in callC when using twrWasmModuleAsync
fix space collapsing bug in twr_iodv
updated callC example/demo
npm published
Version 2.1.0
Enable unicode and rtti in libc++ build
Enable C++20 support in libc++ build
add std c lib function c32rtomb
doc updates
release to npm
Version 2.0.6
minor text and keyword updates
npm published