Need to store shape data, but can't use PShape
in
Programming Questions
•
1 month ago
So, I'm trying to use PShape. However, long story short my computer's graphics card (with fully up to date driver) does not support the version of opengl necessary to run the P2D renderer. Is there a datatype similar to PShape I can use that does not require P2D to run? I basically just need something that will allow me to store shape data.
The code I'm running:
PShape bot;
void setup()
{size(700,700,P2D); background(0);
bot = createShape();
bot.beginShape();
bot.stroke(255);
bot.noFill();
bot.vertex(30, 20);
bot.vertex(85, 20);
bot. vertex(85, 75);
bot.vertex(30, 75);
bot.endShape(CLOSE);}
(every time i run it, it returns an opengl framebuffer error. If I remove P2D the compiler returns a NullPointerException error :P)
The code I'm running:
PShape bot;
void setup()
{size(700,700,P2D); background(0);
bot = createShape();
bot.beginShape();
bot.stroke(255);
bot.noFill();
bot.vertex(30, 20);
bot.vertex(85, 20);
bot. vertex(85, 75);
bot.vertex(30, 75);
bot.endShape(CLOSE);}
(every time i run it, it returns an opengl framebuffer error. If I remove P2D the compiler returns a NullPointerException error :P)
1