I'm looking for a way to render an opengl scene inside an emacs buffer. Is there a best-practice way of doing this?
The code:
(assoc 'window-id (frame-parameters (selected-frame)))
will, get you the window id for X11. I'm not sure about other platforms. Once you have that, you can do things to the window from any other X application you want.
If you want to use all Emacs Lisp code, you will need to use the xlib interface, which was adopted into xwem which is a Window manager written in Emacs Lisp.
http://savannah.nongnu.org/projects/xwem
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With