Skip to content

Instantly share code, notes, and snippets.

@kwahoo2
kwahoo2 / framebuffer_test.py
Last active November 27, 2024 18:48 — forked from vug/framebuffer_test.py
Trying Frame buffer objects in PyOpenGL
import numpy as np
from OpenGL.GL import *
WINDOW_LIBRARY = 'GLFW' # GLFW or GLUT
TRY_FRAMEBUFFER = True
GENERATE_TEXTURE_ID_PROBLEM = False # Follow this global variable to see the error in texture ID generation
SIDE = 800 # window size