Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL context inside Emacs buffer

Tags:

emacs

opengl

I'm looking for a way to render an opengl scene inside an emacs buffer. Is there a best-practice way of doing this?

like image 817
rozgo Avatar asked Jan 13 '10 22:01

rozgo


1 Answers

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

like image 95
Eric Avatar answered Oct 13 '22 00:10

Eric