Skip to content

Windows graphics: Direct3D 11 + DWM window effects #81

Open

Description

@Bell8571

Problem

Why

The README documents a native graphics pipeline as OpenGL on Linux and Metal on macOS. Ebiten already speaks Direct3D 11 on Windows. Rune is missing the platform glue: per-monitor DPI v2, a dark title bar, DWM backdrop (Mica on Windows 11 / Acrylic on Windows 10) so ScreenTransparent and blur match the other OSes, and Windows emoji font search paths.

Goal is to land this upstream under GPLv3-or-later so everyone can run Rune as a native Windows app. Not a proprietary fork.

Approach

Keep the existing Ebiten Game loop and character grid. No second renderer.

  • internal/term/gui/wingfx behind build tags (windows / !windows)
  • Per-monitor DPI v2 before the first HWND
  • DWM attributes once the HWND exists (dark mode, rounded corners, Mica / Acrylic when transparency + blur are on)
  • internal/term/gui/font/emoji_windows.go next to the existing fonts_windows.go
  • Two calls from the GUI loop: prepareNativeWindow(title) in Run, applyNativeWindowEffects(...) at the start of Update (no-ops off Windows)
  • Document Direct3D 11 next to OpenGL / Metal

Draft lives on the fork:

Known blockers outside this repo

A green GOOS=windows build also needs small fixes in the forks Rune already uses:

  1. unstablebuild/ebiten — glfw.InitHint is Unix-only but called unconditionally
  2. unstablebuild/tcell — console_win.go is behind the fork's API

Happy to split those into separate PRs on those repos.

License

GPLv3-or-later, same file headers as the rest of the tree. Contributors keep copyright.

Proposed behavior

Windows adoption

Area

Install, upgrade, or licensing

Alternatives considered

No response

Additional context

No response

Checks

  • I searched existing issues and this is not a duplicate.
  • I would be willing to work on this.

Activity

  1. added
    enhancement
    on Sep 16, 2026
  2. ejb711 commented on Sep 18, 2026

    @ejb711
    Contributor

    We're building a Windows binary from main + #82 + the tcell PR 6 and ebiten InitHint fixes, cross-compiled from WSL and tested natively on Windows 11. With SIGUSR1 stubbed, the in-repo tree already compiles for GOOS=windows; the two forks are the only blockers.

    We'd like to take the non-graphics slices as separate PRs, starting with ConPTY-backed terminals and path handling, and leave graphics to #82. Happy to sync here or in #windows.

  3. ernestrc commented on Sep 19, 2026

    @ernestrc
    Contributor

    merged: unstablebuild/tcell#6. Taking the TUI mode on a separate effort, makes perfect sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions