vst-rs icon indicating copy to clipboard operation
vst-rs copied to clipboard

GUI example

Open Walther opened this issue 5 years ago • 3 comments

As a VST developer, I want to be able to use rust-vst to create a VST that has a graphical user interface.

To help this, rust-vst should provide at least one example in the examples directory that uses one possible approach for making a GUI.

(Further GUI feature development, support for other GUI libraries/frameworks can follow in additional issues.)

Walther avatar Mar 10 '19 22:03 Walther

Hi! I'm creatirng vst plugin with a GUI

ledyba/logica: https://github.com/ledyba/logica

It uses egui + egui-winit + egui_glium.

GUI works, but it requires many work to upgrade egui libs, because egui is still under development.

image

ledyba avatar Feb 08 '22 16:02 ledyba

@ledyba how did you get winit to run with vst-rs? vst-rs provides its own window and as far as i know, winit can't attach to an existing window, how did you handle that?

sebastianpfluegelmeier avatar Mar 09 '22 18:03 sebastianpfluegelmeier

@sebastianpfluegelmeier I made a window as a child of existing one provided by vst-rs.

https://github.com/ledyba/logica/blob/5f34a09b2c33db84f7bb7d56492d017ef1a23160/src/editor.rs#L178-L184

.with_parent_window(unsafe { std::mem::transmute(parent) }); embeds a new window (created by winit) in existing one (created by vst-rs or host).

ledyba avatar Mar 09 '22 22:03 ledyba