Original Post
Ok, i''m rewriting a ray tracer that i wrote about a year ago for a class project. In my original implementation i was going more for functionality than performance so its not that fast at the moment. My question is what''s the best way for me to plot the pixels. Currently i have a set_pixel function that''s uses the following
glBegin(GL_POINTS);
glVertex2i(x,y);
glEnd();
Is this a legitimate solution, or is there a faster way? I realize that plotting pixels probably isn''t opengl''s strong suit but i''d like to find the most efficient solution. All suggestions welcome
thanks