Skip to content

OpenECS 0.5.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Oct 12:57
· 618 commits to dev since this release
8c334ff

OpenECS 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 and s… for the standard plugins, and s10_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_GetFull gives a full path, and ECSPath_Free frees it.
  • ECSHandle_Free frees 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, ECSPopupKind is ECSPopupType with the field type, the wheel event's fields are scrollX and scrollY, and ECSPath_LastSeparator is ECSPath_FindLastSeparator.
  • Reordered parameters: the output comes first, as above.
  • Removed: ECSPanel_StartTimer and panel:startTimer; start timers with ECSTimer_Start and ecs.timer.start, and stop them in Destroy.
  • ECSSession_Open opens sessions only; ECSSession_OpenPreset opens presets. ECSLayout_Close, ECSSession_Save and ECSSession_Open need their argument.
  • OpenECS.h includes shu.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 run OpenECS. 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 beside OpenECS.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.