What is the algorithim or c language coding for glBegin opengl command?

function search_google()
char search[] = “OpenGL Tutorials”;
data results;

results = google(search);


Another way is the documentation available on this website…

@initial poster

You can find the source code for glBegin()
at Mesa is a open source implementation of OpenGL.