使用矩形函数如何在Visual Basic平台的openGL中绘制矩形
答案 0 :(得分:0)
Internet上有许多此功能的示例。这是矩形函数的模板。
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://docs.microsoft.com/en-us/windows/desktop/OpenGL/glrect-functions