Results 1 to 2 of 2

Thread: line style pattern

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Japan
    Posts
    3

    line style pattern

    Hi

    I have a trouble : I have an array with any elements, I just know the number of elements is parity and element can not be 0.

    With this I must do my own line style.
    I don't understand how to translate my array into a pattern for command "glLineStipple".

    Thanks for any help.
    -Cedric

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: line style pattern

    Hi !

    I am not sure what you mean here, but the glLineStipple is simple, the mask specifiec the pattern, look at the binary value of the pattern, the value 0x00ff for example is 0000000011111111 in binary so that will be the pattern, the factor value is just the number of times, each bit will be repeated that number of times.

    Was that what you was looking for or did I missunderstand you somewhere ?

    Mikael

Similar Threads

  1. Line Stipple Pattern
    By astrelke in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-07-2014, 02:32 AM
  2. is this vbo pattern possible??
    By neoideo in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 02-03-2011, 11:20 AM
  3. C++ Style or C Style? Error on compiling...
    By DarkBrute in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-23-2005, 02:14 AM
  4. Complex line style (2D graphics)
    By dimb in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-19-2004, 08:37 AM
  5. line Pattern
    By mop in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-17-2003, 07:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean