Skip to content

OpenECS-examples 0.4.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Oct 05:14
· 433 commits to dev since this release
404d5b7

OpenECS-examples 0.4.0 runs on Windows, and its tests run on Wayland too. 22_gpu_model labels its model with text from its own shaders.

It comes out with OpenECS 0.4.0, which ships these examples, built, in its examples/ folder, and OpenECS-std 0.4.0, whose plugins they use.

Run an example from OpenECS's folder:

./OpenECS --fresh --preset examples/22_gpu_model/preset.lua

What you can learn

Shaders for Windows. 22_gpu_model gives its shaders in DXIL too, for Direct3D 12, which Windows uses. They are HLSL, compiled with DXC to DXIL and to SPIR-V; gpu takes the code that the GPU's driver takes.

Text in a 3D scene. 22_gpu_model draws a label beside a point of its ring, with the glyphs that gpu.glyphs gives and shaders of its own. The ring hides the label as it passes behind it.

Pop-out windows. 12_sketch's new test pops a canvas out into a window of its own, and drags it back into the main window.

Small fixes

  • The examples build on Windows, with LLVM-MinGW or MinGW's gcc, and their tests run there.
  • The tests pass on Wayland in a tiling compositor, where the window fills the screen: 3_ui and 13_terminal no longer depend on the window's width.
  • 18_web knows that its WebSocket connection is open once a message arrives, also when the server's greeting comes before it saw the connection open.

What will break

Nothing.

Downloads

  • openecs-examples-0.4.0-source.tar.gz: the examples' source. Build them inside a checkout of OpenECS, as README.md says.
  • SHA256SUMS: the checksum of the archive.

The examples are under the zlib license.