Skip to content

Instantly share code, notes, and snippets.

Avatar
🌌
Doing some astronomy

1\13121)11_11\/1 N3RDIUM

🌌
Doing some astronomy
View GitHub Profile
@N3RDIUM
N3RDIUM / demo.py
Created February 18, 2022 15:41
PyOpenGL and GLFW example: adding stuff to VBOs from threads!
View demo.py
# imports
from OpenGL.GL import *
from OpenGL.GLU import *
import glfw
import threading
# initialise glfw
if glfw.init() == glfw.FALSE:
exit()
View application.cpp
#include "application.h"
#include "utils.h"
#include "mesh.h"
#include "texture.h"
#include "light.h"
#include "volume.h"
#include "fbo.h"
#include "shader.h"
#include "input.h"
#include "animation.h"
@N3RDIUM
N3RDIUM / Idea-example.py
Last active November 1, 2021 08:35
PyCraft
View Idea-example.py
# I am just an example for idea files!
"""
Explain the idea here
"""
# an example
def someIdea(arg):
print(arg)