This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Minimal demo of OpenGL >= 3.0, Qt >= 5.0 in Python 3.6 | |
Uses a programmable shader pipeline to draw a pair of triangles. | |
Eschews PyQt's wrapper functions in favor of PyOpenGL's because I couldn't get it to draw | |
anything other than a black screen (which means any one of a hundred details were incorrect). | |
Besides, you'd have to fall back on PyOpenGL to get glDrawArrays anyway, so we may as well | |
use it for everything. |
- put
foxdot-cli.py
in the same directory as the FoxDot installaton (in case you're usingvirtualenv
, otherwise comment from lines 5 to 7) - copy
foxdot-mode.el
to~/.emacs.d/lisp
- add
(defvar foxdot-cli-path "/path/to/foxdot-cli/")
in your~/.emacs
file - in Emacs
M-x load-library
and complete withfoxdot-mode
- Type
C-c C-f
orM-x foxdot-start
to start - Type
C-c C-e
orM-x foxdot-execute
to evaluate a line or a block of code
NewerOlder