Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Thick dashed lines

Threaded View

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2011
    Posts
    7

    Thick dashed lines

    Hello!

    I'm writing a function that draws thick dashed lines with OpenGL. After great efforts I have ensured that the geometry of the texture suits well to the line (drawn with triangle strips).


    However, I find no way to change how often the texture is repeated. The texture (see the attached image) is 4 pixels wide by 8 high. I want each pixel to be displayed wider so that the line look better.


    Any idea?
    Thank you!
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	dashed.jpg 
Views:	209 
Size:	83.6 KB 
ID:	1048  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •