3 ms·
> glBegin(GL_TRIANGLES); glVertex3f(x, y, z)...; glEnd(); That's fine for a "hello triangle" program, but quickly becomes ridiculous for anything approaching a
by 0xcde4c3db 8y ago
> glBegin(GL_TRIANGLES); glVertex3f(x, y, z)...; glEnd();
That's fine for a "hello triangle" program, but quickly becomes ridiculous for anything approaching a serious engine. There's a reason that glDrawArrays() has been around since 1995 (and part of the core specification since 1997).