我想在 C++ 中使用 OpenGL 库创建一条粗线,但它不起作用。我试过这个代码:
glBegin(GL_LINES); glLineWidth(3); glVertex2f(-0.7f, -1.0f); glVertex2f(-0.7f, 1.0f); glEnd();
这里有什么问题吗?
c++ opengl line opengl-compat
c++ ×1
line ×1
opengl ×1
opengl-compat ×1