opengl 双缓存在VB6.0中如何使用,SwapBuffers加上来就启用双缓存了吗? Private Sub Display()
glClearColor 0#, 0#, 1#, 0#
glClear clrColorBufferBit
glColor3f 1#, 1#, 1#
glBegin glBeginModeConstants.bmLineStrip
glVertex2f -1, -1
glVertex2f -1, 1
glVertex2f 1, 1
glVertex2f 1, -1
glEnd glFlush
SwapBuffers Picture1.hDC
End Sub
glClearColor 0#, 0#, 1#, 0#
glClear clrColorBufferBit
glColor3f 1#, 1#, 1#
glBegin glBeginModeConstants.bmLineStrip
glVertex2f -1, -1
glVertex2f -1, 1
glVertex2f 1, 1
glVertex2f 1, -1
glEnd glFlush
SwapBuffers Picture1.hDC
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货