Hello list!
First of all: is SDL_RenderLine supposed to handle non-90-degrees
lines? I.e. ones where both (x2-x1) and (y2-y1) are != 0 ?
For me, that doesn’t work, only straight vertical or horizontal lines
are drawn. The documentation is unclear, so I’m not sure if it’s a bug
or desired behavior.
Second question: are we married to the way points passed as x1/x2/y1/y2
are handled? For example, SDL_RenderLine(0,0, 2,0) draws me a 3-pixel
line, which I find kinda unhelpful. Altho, typing it down, it now does
make sense to me.–
driedfruit
2013/7/13, Driedfruit :
First of all: is SDL_RenderLine supposed to handle non-90-degrees
lines? I.e. ones where both (x2-x1) and (y2-y1) are != 0 ?
For me, that doesn’t work, only straight vertical or horizontal lines
are drawn. The documentation is unclear, so I’m not sure if it’s a bug
or desired behavior.
That sounds like a bug, but which renderer are you using?
Second question: are we married to the way points passed as x1/x2/y1/y2
are handled? For example, SDL_RenderLine(0,0, 2,0) draws me a 3-pixel
line, which I find kinda unhelpful. Altho, typing it down, it now does
make sense to me.
ABI is frozen. Also honestly I don’t see what’s wrong with it (you’re
just passing the start and end points), especially if you want to pass
non-90? lines.
Note that it’s 3 units, not 3 pixels. This will make sense if you
change the logical size of the screen (but yes, by default it’s 1 unit
= 1 pixel).
2013/7/13, Driedfruit <@Driedfruit>:
First of all: is SDL_RenderLine supposed to handle non-90-degrees
lines? I.e. ones where both (x2-x1) and (y2-y1) are != 0 ?
For me, that doesn’t work, only straight vertical or horizontal
lines are drawn. The documentation is unclear, so I’m not sure if
it’s a bug or desired behavior.
That sounds like a bug, but which renderer are you using?
OpenGL. I can produce a proper bug report; just wanted to be sure that
the behavior is indeed undesired.
Second question: are we married to the way points passed as
x1/x2/y1/y2 are handled? For example, SDL_RenderLine(0,0, 2,0)
draws me a 3-pixel line, which I find kinda unhelpful. Altho,
typing it down, it now does make sense to me.
ABI is frozen. Also honestly I don’t see what’s wrong with it (you’re
just passing the start and end points), especially if you want to pass
non-90? lines.
Yeah, you’re right. Dropping that question.
Note that it’s 3 units, not 3 pixels. This will make sense if you
change the logical size of the screen (but yes, by default it’s 1 unit
= 1 pixel).
Right.On Sat, 13 Jul 2013 08:40:08 -0300 Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:
–
driedfruit