OpenGL Line Width

前端 未结 4 1741
温柔的废话
温柔的废话 2020-11-30 13:59

In my OpenGL app, it won\'t let me draw a line greater then ten pixels wide. Is there a way to make it draw more than ten pixels?

void OGL_Renderer::drawLin         


        
4条回答
  •  旧巷少年郎
    2020-11-30 14:34

    You could try drawing a quad. Make it as wide as you want your line to be long, and tall as the line width you need, then rotate and position it where the line would go.

提交回复
热议问题