Original Post
What is the general strategy for rendering growth? For example if I have a line rendered in the display function, how do I add more line on top of it while keeping the old line?
Quote:
Original post by PetrakovichJ
Actually fractals is exactly what I am doing. How would I go about using OpenGL to use this vector of points?
struct Point3{ float x, y, z;};std::vector <Point3> points;// initializationspoints.reserve(num_lines * 2);for (uint i=0; i<num_lines; ++i){ points.push_back(lines.point_a); points.push_back(lines.point_b);}// drawing (unoptimized, no VBO and stuff)glBegin (GL_LINE_LIST);for (uint i=0; i<num_lines; ++i){ glVertex3fv( & points[i*2].x ); glVertex3fv( & points[i*2+1].x );}glEndThis topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more