Original Post
How would I go about filling a box with a given x and y and width and height up with pixels of a certain color?
I'm guessing it would involve making a new vertex buffer, but I don't know how to just fill it with a color
in opengl this could be done like:
glBegin(GL_QUADS);
glVertex2f(x,y);
glVertex2f(x,y+h);
glVertex2f(x+w,y+h);
glVertex2f(x+w,y);
glEnd();
I'm guessing it would involve making a new vertex buffer, but I don't know how to just fill it with a color
in opengl this could be done like:
glBegin(GL_QUADS);
glVertex2f(x,y);
glVertex2f(x,y+h);
glVertex2f(x+w,y+h);
glVertex2f(x+w,y);
glEnd();