OpenGL ES - Dashed Lines

前端 未结 3 1720
一整个雨季
一整个雨季 2020-12-11 18:33

I\'m Using OpenGlEs10 for My Android Game Development, I Want to Draw Dashed-lines Now Im Using This Code to Draw My Line:

         


        
3条回答
  •  无人及你
    2020-12-11 18:56

    You don't have to use a texture, you can simply use the function glLineStipple(GLint factor, GLushort pattern) and then call glEnable(GL_LINE_STIPPLE).

    For more information about glLineStipple and its arguments you can have a look at this.

提交回复
热议问题