Page 1 of 1

Hardware text clipping?

Posted: Sat Oct 09, 2004 5:53 pm
by BoB-O
Hello,

I'm trying to write a little windowing system for my GLK24064-25. I've gone through a lot of hoops to do line clipping in software, but it appears I'm sunk for text clipping. Is there any way I can get the screen to clip the text as it draws it?

Thanks,
BoB

Posted: Mon Oct 11, 2004 3:50 am
by Henry
I'm not sure what you mean by "clip"

Posted: Mon Oct 11, 2004 6:46 am
by Mat-Moo
E.G If you ask for text to be draw at -10,10 (10 pixels to the left of the screen actual start) will it clip the text? Same on the otherside I guess, does it wrap around or cut it off?

Posted: Mon Oct 11, 2004 8:56 am
by BoB-O
Henry wrote:I'm not sure what you mean by "clip"
Say I want to have text across the middle of the screen (horizontally) with a filled circle on top of it. I'd just draw the text, then draw the circle. Now, suppose I want to change the text without redrawing the circle. I could approximate it by drawing the first part of the text on one side and the end of the text on the other. This, however, would not be fully accurate as the letters which intersect the circle would not be present. Clipping would allow me to draw the whole string and have the hardware not draw in the region where the circle is.

Clear as mud?

Thanks,
BoB

Posted: Tue Oct 12, 2004 10:34 am
by Miles
Will the character string be constantly changing??

Posted: Tue Oct 12, 2004 8:08 pm
by BoB-O
Miles wrote:Will the character string be constantly changing??
I can think of applications where this will be the case. Like I said, I'm developing a windowing library for a consumer electronics project, so the applications are limitless. :wink:

BoB