Load an image using OpenGL and on the image to draw the grid

glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);


The Grid (X_POINT_COUNT, Y_POINT_COUNT, X_SPACING, Y_SPACING);
    
texturemapping (); (where glMatrixMode (GL_MODELVIEW); glTranslatef (0 , 0, -3); inwardly moving image)
    
renderGrid (X_POINT_COUNT, Y_POINT_COUNT, X_SPACING, Y_SPACING);  

Guess you like

Origin blog.csdn.net/qq_41598072/article/details/90414846