Repository navigation
OpenECS 0.5.0
Pre-releaseOpenECS 0.5.0 makes the plugin interface plainer: each job has one function, and C and Lua call it by the same name. A plugin author gets only the interface, with no library headers in it, and OpenECS --definitions writes all of it. Shaders are written in GLSL, and a new plugin brings cglm's math to Lua.
It comes out with the releases of the two repositories that OpenECS ships, each described in its own release:
- OpenECS-std 0.5.0: the cglm plugin, gpu's shaders from GLSL, scoped clips, native folder watching on Windows, and the standard plugins built for each system.
- OpenECS-examples 0.5.0: the examples, renamed
c…for the plugin interface ands…for the standard plugins, ands10_cglm.
This is still an early release.
What you can do
Write a plugin from the interface alone. A release's include/ holds OpenECS.h, shu.h, ecs.lua, and each plugin's NAME.h and NAME.lua: nothing else. OpenECS --definitions FOLDER writes the same folder, which always matches the program that wrote it. A plugin that needs a library brings it itself.
Call one function for each job, by one name. Output parameters come first after the object, such as ECSPopup_Open(panel, &popup, &desc), and end functions clear the handle. C and Lua names match: ECSKey_Bind and ecs.key.bind, ecs.setting.*, ecs.panel.listTypes, ecs.dialog.showMessage, subscription:unsubscribe() and the others that DESIGN.md lists.
ECSPath_GetFullgives a full path, andECSPath_Freefrees it.ECSHandle_Freefrees a handle that a function gave.
Follow settings. ecs.settingChanged is sent when a setting's value in effect changes, with the setting's full name, so a plugin can follow a setting it does not own, such as ecs.font.
Move panels between workspaces from the keyboard. Shift+1 to Shift+0, after the prefix, move the focused panel to workspace 1 to 10.
Read the log on a terminal. Its levels are coloured there.
Build and test with one command. ./shuild.ignore -t builds in Debug with the examples and runs their tests; -t c12_sketch runs one example's.
Small fixes
- Where windows overlap, a dropped panel goes into the front one.
- On Wayland, a panel dragged between windows shows where it will drop.
- A plugin whose save failed no longer loses the state that the session already had.
- Tasks still waiting at shutdown are freed.
- When the focused panel moves to another workspace, the focus goes to the panel that its old group now shows.
What will break
Native plugins. OPENECS_API_VERSION is 2. Build native plugins again against this release's include/, and set api = 2 in their manifests.
- Renamed functions and fields: those above,
ECSValue_AddListItem,ECSValue_SetTableField,ECSPanel_GetUnsaved,ECSPopupKindisECSPopupTypewith the fieldtype, the wheel event's fields arescrollXandscrollY, andECSPath_LastSeparatorisECSPath_FindLastSeparator. - Reordered parameters: the output comes first, as above.
- Removed:
ECSPanel_StartTimerandpanel:startTimer; start timers withECSTimer_Startandecs.timer.start, and stop them in Destroy. ECSSession_Openopens sessions only;ECSSession_OpenPresetopens presets.ECSLayout_Close,ECSSession_SaveandECSSession_Openneed their argument.OpenECS.hincludesshu.h, which is beside it.
C plugins on Windows. lib/ holds only libOpenECS.a. A plugin that used SDL's import libraries brings SDL itself.
Your folders. They are named OpenECS: ~/.config/OpenECS/, ~/.local/share/OpenECS/ and ~/.local/state/OpenECS/ on Linux, and %APPDATA%\OpenECS\ on Windows. Settings and sessions in the old lowercase folders are not moved; move them by hand. The log is OpenECS.log.
The command line. -l, --log-input is removed.
Downloads
openecs-0.5.0-linux-x86_64.tar.gz: the program with SDL's libraries, its plugins, presets and examples, the plugin interface, and the licenses. Unpack it and runOpenECS. It needs glibc 2.38 or later, such as Ubuntu 24.04 or Fedora 39.openecs-0.5.0-windows-x86_64.zip: the same for Windows on x86_64, with SDL's DLLs besideOpenECS.exe.openecs-0.5.0-source.tar.gz: the source with every library it uses. GitHub's own "Source code" archives leave the libraries out, so use this one to build.SHA256SUMS: checksums of the archives.
OpenECS is under the zlib license.