Problem getting started with OpenGL
in
Core Library Questions
•
1 years ago
Hi all. I'm just getting started and when I copy and paste the code listed as the example for OpenGL (shown below) I get this error.
"GLException: Unable to create OpenGL context for device context 0xfffffffffe010d43"
I'm using 1.5.1 for what it's worth.
This is the example code:
"GLException: Unable to create OpenGL context for device context 0xfffffffffe010d43"
I'm using 1.5.1 for what it's worth.
This is the example code:
- import processing.opengl.*;
float a;
void setup() {
size(800, 600, OPENGL);
fill(0, 153);
noStroke();
}
void draw() {
background(255);
translate(width/2, height/2);
rotateX(a);
rotateY(a*2);
rect(-200, -200, 400, 400);
rotateX(PI/2);
rect(-200, -200, 400, 400);
a += 0.01;
}
1