Repository navigation
OpenECS-std 0.2.0
Pre-releaseThis is the first release of OpenECS-std, the standard plugins of OpenECS. It comes out with OpenECS 0.2.0, which ships these plugins built, in its plugins/ folder. The examples of OpenECS-examples 0.2.0 show how to use them.
Your plugins build on the standard plugins: name one in your manifest's depends, and get its functions with require in Lua, or from its definition header in C. Each plugin needs nothing but OpenECS. The libraries it uses are compiled into it.
What you can do
Draw and build user interfaces.
- draw: draws rectangles, outlines, lines, circles, triangles, images and text into your panel, and clips them to a rectangle. It has the interface's font and a monospace one, Roboto Mono, which it ships.
- ui: buttons, toggles, sliders, selectors, dropdowns, text fields, key fields, images, groups, separators, scroll areas and lists, laid out in rows and columns. You describe them each time the panel draws, and give functions that run on clicks and edits. They are generic, so your tool builds its own views from them, and their sizes are settings.
Plugins that read files are apart from the plugins that use what they read, so a file format is read in one place and works wherever its executor does:
Show text, images and models.
- textgrid: grids of characters for terminals, consoles, logs and editors, drawn with draw at any font size, with colours and a cursor.
- image: reads PNG, JPG, GIF, BMP, TGA, PSD, HDR, PNM and SVG files into images that draw draws stretched into your panel. SVG files are read at the size you need, so they stay sharp.
- gltf: reads glTF 2.0 models,
.gltfand.glb, and gives their meshes, materials, nodes and vertex data, which draw'strianglesandlinestake.
Play sound and talk over the network.
- mixer: plays sounds, many at once, with a volume and looping.
- audio: reads WAV, MP3, FLAC and Ogg Vorbis files into sounds that mixer plays.
- net: TCP connections and servers, and UDP sockets, that never block your program. You ask for what arrived when you want, such as from a timer.
Work with files.
- fs: lists folders, tells what a path is, makes folders, and copies files. Lua's
ioreads and writes what files hold, andosrenames and removes them.
Change settings, and start a tool.
- settings: the settings window, on Alt+W, then
,. It lists every setting with a control for its type, and shows a value that does not fit as wrong. - panels: the panel list, on Alt+W, then N. It lists the panel types of the tool by plugin, and opens the one you choose.
- launcher: what OpenECS shows when it starts without a preset: your presets and saved sessions, to open with a click or the keys.
Downloads
openecs-std-0.2.0-source.tar.gz: the source with the libraries it compiles in. Build it inside a checkout of OpenECS, as README.md says.SHA256SUMS: the checksum of the archive.
The standard plugins are under the zlib license. The libraries in dependencies/ keep their own licenses, which OpenECS's release lists.