merge ws/video2
This commit is contained in:
commit
c5f27770fc
63 files changed
+12207
-1509
No files matched your search
@@ -26,7 +26,8 @@ Nothing throws on bad data or bad arguments: every call returns `nil, err` (`err
|
||||
**Roblox (Rojo).** `python3 -I tools/build.py roblox` writes `build/roblox/Formats` (requires turned into instance
|
||||
paths); `default.project.json` mounts it, so `rojo build -o Formats.rbxm` (or `rojo serve`) gives a `Formats`
|
||||
ModuleScript to put in ReplicatedStorage: `local F = require(game.ReplicatedStorage.Formats)`. There is no file system:
|
||||
pass buffers or strings. `F.host.toEditableImage(img)` makes an EditableImage.
|
||||
pass buffers or strings. `F.host.toEditableImage(img)` makes an EditableImage, `F.host.toEditableMesh(prim, page)` an
|
||||
EditableMesh (a merged triangle primitive split by `F.host.meshPages`).
|
||||
|
||||
**LuaJIT / LÖVE.** `python3 -I tools/build.py luajit` writes `build/luajit/formats/` (Lua 5.1 + LuaJIT FFI; the Luau
|
||||
standard library pieces come from `formats/_compat.lua`). Copy the `formats` folder into the game (or put
|
||||
@@ -80,7 +81,7 @@ hands to formats (decodeImage / encodeImage / openAudio / plugins): [docs/API.md
|
||||
|
||||
| Host | Files | Bridges |
|
||||
|---|---|---|
|
||||
| Roblox | none: pass buffers / strings | `F.host.toEditableImage(img)` |
|
||||
| Roblox | none: pass buffers / strings | `F.host.toEditableImage(img)`, `meshPages` / `toEditableMesh(prim, page)` |
|
||||
| LÖVE | `love.filesystem`, then `io` | `toImageData`, `fromImageData`, `toSoundData` |
|
||||
| LuaJIT | `io.open` | |
|
||||
| luau CLI | none | |
|
||||
|
||||
Reference in new issue
Block a user