mcpp index

compat.eui-neo

#include

EUI-NEO — declarative retained-mode C++17 UI framework (GLFW + OpenGL)

#include <eui_neo.h>
mcpp add compat.eui-neo@0.6.5

Usage

From this repository's own test project — built and run by CI, not written for the website.

// compat.eui-neo `app-main` FEATURE: there is no main() in this file on purpose.
// The entry point is upstream's core/app/glfw_app_main.cpp, which the feature
// adds to the library — it owns the window, the GL backend and the render loop,
// and calls back into the two symbols an EUI application must supply:
// app::dslAppConfig() and app::compose(). That is the whole shape being pinned
// here, and it is the shape a real EUI-NEO application uses.
//
// tests/examples/eui-neo-window asserts the OTHER half of the same feature pair:
// the same UI driven by a hand-written main(), with `app-main` NOT enabled.
//
// Two things make this member work under `mcpp test`:
//
//  1. The link IS the primary assertion. `main` has to come from the package;
//     if the feature ever stops gating glfw_app_main.cpp in, this member fails
//     with `undefined reference to 'main'`. Conversely, if the feature ever
//     stopped being opt-in, every OTHER member would fail with
//     `multiple definition of 'main'` — mcpp links a dependency's objects
//     eagerly, so there is no lazy-archive escape hatch.
//
//  2. Running a window needs a display, so the run is opt-in via
//     MCPP_RUN_WINDOW=1, as in tests/examples/imgui-window. Because the entry
//     point belongs to the package, the gate cannot live in main() — it lives in
// …

tests/examples/eui-neo-app-main/tests/app_main.cpp · project tests/examples/eui-neo-app-main

Build

targets
eui-neo (lib)
language
c++23
C standard
c99
import std
no
include dirs
*/include, *, mcpp_generated

Features

featuredeclares
plotsources
serialsources
markdowndeps, defines
app-main-sdl2sources
vulkandeps, sources, defines
networkdeps, defines
sdl2deps, defines
app-mainsources

Sources (28)

  • */core/platform/async.cpp
  • */core/platform/json.cpp
  • */core/platform/native_bridge.c
  • */core/platform/network.cpp
  • */core/platform/performance_stats.cpp
  • mcpp_generated/eui_neo_platform_tu.cpp
  • */core/platform/tray_bridge.c
  • */core/render/image.cpp
  • */core/render/image_stream.cpp
  • */core/render/image_facade.cpp
  • */core/render/image_source.cpp
  • */core/render/primitive.cpp
  • */core/render/render_backend.cpp
  • */core/render/shadertoy.cpp
  • */core/render/shadertoy_json.cpp
  • */core/render/shadertoy_primitive.cpp
  • */core/render/stb_image_impl.cpp
  • */core/render/text.cpp
  • */core/render/opengl/opengl_backend.cpp
  • */core/render/opengl/opengl_image.cpp
  • */core/render/opengl/opengl_primitives.cpp
  • */core/render/opengl/opengl_shadertoy.cpp
  • */core/render/opengl/opengl_text.cpp
  • */core/platform/gesture_bridge.c
  • */core/platform/ime_bridge.c
  • */core/window/window_backend.cpp
  • */core/window/window_input_backend.cpp
  • */core/audio/audio.cpp

Generated files

  • mcpp_generated/eui_neo_platform_tu.cpp
  • mcpp_generated/mcpp_eui_backends.h

Versions

VersionPlatforms Mirrorssha256
0.6.5 latest LinuxWindowsmacOS CN GLOBAL b77b40341e4f…
0.6.4 LinuxWindowsmacOS source d99b25600b99…
0.6.3 LinuxWindowsmacOS source 08074e2fb726…
0.6.2 LinuxWindowsmacOS source 189d97aadb04…
0.6.1 LinuxWindowsmacOS source cd0bd6bd4371…
Show all 13 versions
0.6.0 LinuxWindowsmacOS source 11d0725bcc6f…
0.5.9.1 LinuxWindowsmacOS source 370d1da706d9…
0.5.9 LinuxWindowsmacOS source 370d1da706d9…
0.5.8 LinuxWindowsmacOS source 004d46f34d98…
0.5.7 LinuxWindowsmacOS CNGLOBAL 2d3ec0a36e34…
0.5.6 LinuxWindowsmacOS CNGLOBAL 0df8d79897a4…
0.5.5 LinuxWindowsmacOS CNGLOBAL cf0da91d7544…
0.5.3 LinuxWindowsmacOS CNGLOBAL 6951ac330d03…