glui.md 2.0 KB


title: GLUI

import Alert from '@theme/Alert' import useBaseUrl from '@docusaurus/useBaseUrl'

This pattern is not available for now.

import Rater from '@theme/Rater'

Ease of Use
Extensibility
Performance
Security
GLUI
Pros:
  • Framebuffer FTW
  • Window events rigged
Cons:
  • Broken on your machine

Description

The GLUI is a research pattern that we will use internally to test approaches using a GLUTIN window. We’re not sure yet if it will make the final cut as a bona fide alternative to WebView, although early tests with transparent and multiwindow are exciting.

Diagram

import Mermaid, { colors } from '@theme/Mermaid'

<Mermaid chart={`graph TD

  A==>H
  H==>G
  A-->D
  D-->G
  subgraph GLUTIN
  G
  end
  subgraph RUST
  A
  end
  A[Binary]
  D(Framebuffer)
  G[GL Window]
  H{Bootstrap}
  style GLUTIN stroke:${colors.blue.dark},stroke-width:4px
  style RUST fill:${colors.orange.light},stroke:${colors.orange.dark},stroke-width:4px`} />

Configuration

Here's what you need to add to your tauri.conf.json file:

"tauri": {
  "allowlist": {                  // all API endpoints are default false
    "all": false,                 // disable the api
  },
  "window": {                     // not yet normative
    "glutin": true,
    "webview": false
  }
}