I'm planning on using scissoring (GL thingy, if you don't know what it is then a quick explanation is that it basically restricts rendering to a rectangular portion of the screen) for input boxes (e.g., list/combo/text/treeview/etc. boxes) so that I can render without worrying about crap like the text going past borders or drawing outside boxes and such.
Anyhow, problem I'm having is how to use it.
Basically, this doesn't work the way I expect it to:
Where width and height would be at the start of the portion where the window is being drawn to, it doesn't look like it's restricting drawing to that part of the window. It looks like like it's making it wider and taller and such than it should be.
So if anyone knows how to use scissoring properly, I'd be grateful if they could explain it to me.
Thanks in advance.
Anyhow, problem I'm having is how to use it.
Basically, this doesn't work the way I expect it to:
glEnable(GL_SCISSOR_TEST) glScissor(X,Y,Width,Height) ..draw stuff..
Where width and height would be at the start of the portion where the window is being drawn to, it doesn't look like it's restricting drawing to that part of the window. It looks like like it's making it wider and taller and such than it should be.
So if anyone knows how to use scissoring properly, I'd be grateful if they could explain it to me.
Thanks in advance.