sorry in advance for what may be a redundant question, since it’s pretty basic…
i would like to create a window that has exactly width pixels and height pixels, in their respective direction.
should i use glOrtho(0, width, 0, height, -1.0, 1.0) or glOrtho(0, width - 1, 0, height - 1, -1.0, 1.0)? i’ve seen it both ways.
also, i realize that pixels have an area, so when i think of a grid coordinate system over this window, am i going to have width and height full pixels or width - 1 and height - 1 pixels with an additional half pixel on each side (so the total either way is width x height pixels)?
pretty much the same question:
for the left, where is the exact point that gets clipped (less than the 0 pixel, exactly the 0 pixel, or less than or equal to the 0 pixel? In other words, if i draw a pixel at (0.0, y) should i see a full pixel, half a pixel, or no pixel at all.
i’ve also seen people suggest using glOrtho(-0.5, width - 0.5, -0.5, height - 0.5, -1.0, 1.0)
but i’m not sure what’s right.
can someone please clarify?