- Download Python
- Cek Python > Scripts. Cek apakah ada get-pip.py atau tidak. Kalau tidak, download dulu.
- Buka cmd di folder yang ada get-pip.py, lalu:
python get-pip.py
- Install pygame.
pip install pygame
- Buka editor teks, ketik:
import pygame from pygame.gl import *
- Install PyOpenGL. Download from http://www.lfd.uci.edu/~gohlke/pythonlibs/ Di sini aku pakai yang PyOpenGL-3.1.1-cp27-cp27m-win_amd64.whl Lalu lakukan:
pip install PyOpenGL-3.1.1-cp27-cp27m-win_amd64.whl
- Contoh jalankan saja cube.py
python cube.py