We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Don't ask me why you don't have opengl, I have no idea.
Where do I download the OpenGL library for processing?
Thank you.
AFAIK, from P3 atleast, there is no OpenGL library. Just use P3D or P2D. They are both OpenGL based renderers.
@Lord_of_the_Galaxy
But when I try to run some code that has OpenGL class in it, it gives me this error
I assume GL2 must be a class in OpenGL library.
Now where did you get that code from? It could be possible that the code is for P2 (or even Processing 1) and not P3.
@bahtiyar_a
The issue is that if your code declares or assigns an object of type GL2:
GL2 gl;
...then somewhere, either your code or an imported library needs to say:
class GL2 { // this is my class }
This looks like you found some code somewhere and only copied part of it.
Answers
AFAIK, from P3 atleast, there is no OpenGL library. Just use P3D or P2D. They are both OpenGL based renderers.
@Lord_of_the_Galaxy
But when I try to run some code that has OpenGL class in it, it gives me this error
I assume GL2 must be a class in OpenGL library.
Now where did you get that code from? It could be possible that the code is for P2 (or even Processing 1) and not P3.
@bahtiyar_a
The issue is that if your code declares or assigns an object of type GL2:
...then somewhere, either your code or an imported library needs to say:
This looks like you found some code somewhere and only copied part of it.