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

用法

来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。

// 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 · 项目 tests/examples/eui-neo-app-main

构建

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

特性

特性声明了
plotsources
serialsources
markdowndeps, defines
app-main-sdl2sources
vulkandeps, sources, defines
networkdeps, defines
sdl2deps, defines
app-mainsources

源文件 (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

生成的文件

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

版本

版本平台 镜像sha256
0.6.5 最新 LinuxWindowsmacOS CN GLOBAL b77b40341e4f…
0.6.4 LinuxWindowsmacOS 源站 d99b25600b99…
0.6.3 LinuxWindowsmacOS 源站 08074e2fb726…
0.6.2 LinuxWindowsmacOS 源站 189d97aadb04…
0.6.1 LinuxWindowsmacOS 源站 cd0bd6bd4371…
展开全部 13 个版本
0.6.0 LinuxWindowsmacOS 源站 11d0725bcc6f…
0.5.9.1 LinuxWindowsmacOS 源站 370d1da706d9…
0.5.9 LinuxWindowsmacOS 源站 370d1da706d9…
0.5.8 LinuxWindowsmacOS 源站 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…