-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How do I create a context #58
Comments
Currently the python library has no support for shared hardware buffers. If you want to use OpenGL, you'll need to use the C library. Here is the OpenGL example. I likely won't have time to implement this for the python library for a few months. |
I see, i'm trying to compile the example and it's throwing and EGL error: buffer_gl.c:10:10: fatal error: EGL/egl.h: No such file or directory How do I install EGL with C? |
I think the headers are in the mesa-dev package? |
The header worked now, but I still can't compile it, I have little to no knowledge in C, so I don't know what happened here gcc -o buffer buffer_gl.c |
you need to link the libraries, try like this: |
I'm trying to run an example OpenGL Project, by porting it to OpenGL ES 2, so that I can run on Termux:GUI and learn how to make 3D graphics, and i'm stuck in this problem that I can't figure out the variable that indicates the display to create a context, basically, I need help, here's the code:
Here's the command that set everything:
pkg install termux-gui-package python-opengl numpy
pip install PyOpenGL
if i remember correctly that's all you need to install, but I'm not certain if it's actually just these
almost forgot, here's the repo that i downloaded the examples:
https://github.com/jcteng/python-opengl-tutorial
The text was updated successfully, but these errors were encountered: