Re: 1 pixel width NSBezierPath issue
Re: 1 pixel width NSBezierPath issue
- Subject: Re: 1 pixel width NSBezierPath issue
- From: mathew <email@hidden>
- Date: Tue, 18 Feb 2003 22:21:45 -0500
On Tuesday, February 18, 2003, at 08:45 PM, Prendergast wrote:
QuickDraw is designed to do exactly what you want: single pixel
control and traditional bitmap approximation of lines. It is also
simpler to accomplish simple line & plot operations using
QuickDraw. Search for sample code involving an NSQuickDrawView.
Or even better, use OpenGL, which isn't a "legacy" technology on OS
X and has the added benefits of being cross-platform and
hardware-accelerated.
glDisable(GL_LINE_SMOOTH); // default, shouldn't be needed
glPointSize(1.0);
glBegin(GL_LINES);
glVertex2f(0.0, 0.0);
glVertex2f(33.0, 98.4);
glEnd();
mathew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.