pyopengl
pyopengl copied to clipboard
Repository for the PyOpenGL Project
my setup: pygame 2.5.2, PyOpenGL 3.1.7 Ubuntu 22.04.3 LTS (XDG_SESSION_TYPE="wayland") running the pygame example 'glcube.py' yields: "OpenGL.error.Error: Attempt to retrieve context when no valid context" On my system the call...
OpenGL.error.NullFunctionError: Attempt to call an undefined function glGenVertexArrays, check for bool(glGenVertexArrays) before calling free(): invalid pointer + ubuntu 22 + pyglet 2.0.14 + PyOpenGL 3.1.0 + PyOpenGL-accelerate 3.1.7 + pyOpenSSL...
In my specific case I was passing a large bytes object to glBufferStorage, but used a incorrect number of arguments. It appears that the bytes objects attempts to be displayed...
``` /usr/lib/python3.11/site-packages/OpenGL/platform/egl.py:76: ResourceWarning: unclosed file info = open('/proc/cpuinfo').read() ```
I'm using a headless environment with no display. I create a context with eglCreateContext and bind it with eglMakeCurrent. After that, I use the context in the opengl es environment...
This fixes type errors that cause build failures with current compilers: ``` src/numpy_formathandler.c: In function ‘__pyx_f_17OpenGL_accelerate_19numpy_form athandler_12NumpyHandler_c_asArray’: src/numpy_formathandler.c:6412:43: error: passing argument 1 of ‘(int (*)(PyArrayObject *, PyObject *))*(PyArray_API + 832)’...
I have a problem if i run the script for downloading_trained_model.sh. GPT suggested to download the Model Manuelly... But after i had in next step even more problems this seemed...
When using `opengl-accelerate`, many operations will fail if passed a `numpy.array` which is contiguous, but is not writeable, e.g.: ```python print(value.flags) gl.glBufferData(gl.GL_ARRAY_BUFFER, value.nbytes, value, gl.GL_STATIC_DRAW) ``` results in: ``` C_CONTIGUOUS...
Hi, I recently installed pyOpenGL on my computer and had troubles importing it because of an error in the modified files. _check_size seems to work only when imported explicitly. Best...