使用矩形函数,如何在Visual Basic平台的openGL中绘制
矩形互联网上有很多这个功能的例子。下面是矩形函数的模板。
void WINAPI glRectd(
GLdouble x1,
GLdouble y1,
GLdouble x2,
GLdouble y2
);
参数
x1
The x coordinate of the vertex of a rectangle.
Y1
The y coordinate of the vertex of a rectangle.
x2
The x coordinate of the opposite vertex of the rectangle.
Y2
The y coordinate of the opposite vertex of the rectangle.
更多示例:https://learn.microsoft.com/en-us/windows/desktop/OpenGL/glrect-functions