Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EUI-NEO

EUI-NEO 是一个基于 OpenGL + GLFW 的声明式 2D GUI 框架,支持组件化 UI、即时模式组合与事件驱动渲染。

EUI-NEO Preview 1 EUI-NEO Preview 2 EUI-NEO Preview 3 EUI-NEO Preview 4

编译

cmake -B build -G Ninja
cmake --build build --config Release

基础示例

1) 最小 DSL 入口

#include "app/DslAppRuntime.h"

int main() {
    EUINEO::DslAppConfig config;
    config.title = "EUI Demo";
    config.width = 900;
    config.height = 600;
    config.pageId = "demo";
    config.fps = 120;

    return EUINEO::RunDslApp(config, [](EUINEO::UIContext& ui, const EUINEO::RectFrame& screen) {
        EUINEO::UseDslDarkTheme(EUINEO::Color(0.0f, 0.0f, 0.0f, 1.0f));

        ui.panel("bg")
            .position(0.0f, 0.0f)
            .size(screen.width, screen.height)
            .background(EUINEO::Color(0.10f, 0.10f, 0.12f, 1.0f))
            .build();

        ui.button("hello")
            .position(24.0f, 24.0f)
            .size(140.0f, 40.0f)
            .text("Hello EUI-NEO")
            .build();
    });
}

详细文档

更多细节参考 docs/guide

⭐ Project Stats


📈 Star History

Star History Chart

About

Immediate-mode C++ UI toolkit with a unified OpenGL renderer path for GLFW

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages