Multiwin

Ease of Use
Extensibility
Performance
Security
Pros:
  • Access to GL context
  • Separation of concerns
Cons:
  • Extremely complex

Description

The Multiwin recipe will allow you to have multiple windows, some of which may be GL based.

Diagram

graph LR A==>H H==>F H==>G subgraph WEBVIEW F end subgraph GLUTIN G end subgraph RUST A end A[Binary] F[Window] G[GL Window] H{Bootstrap} style GLUTIN stroke:#1D81EE,stroke-width:4px style RUST fill:#fad3a9,stroke:#F28918,stroke-width:4px style WEBVIEW fill:#abd0f9,stroke:#1D81EE,stroke-width:4px

Configuration

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

"tauri": {
  "embeddedServer": {
    "active": false               // do not use a localhost server
  },
  "whitelist": {                  // all API endpoints are default false
    "event": true,                // Use the EVENT API for injections
  }
}