Re: How to make 2D lines look 3D
Re: How to make 2D lines look 3D
- Subject: Re: How to make 2D lines look 3D
- From: Thomas Engelmeier <email@hidden>
- Date: Fri, 31 Dec 2010 16:45:57 +0100
Am 31.12.2010 um 16:29 schrieb Matthias Arndt:
> - Draw 2D lines in OpenGL
>
> I dropped the OpenGL approach due to too many drawbacks, e. g. missing round line caps, resolution-dependence of line width, ... The shadow approach looks best, but is out of question due to its bad performance.
Which means you used OpenGL line drawing primitives. You could try to use pre-rendered images with transparency (=shadow), with linecaps separate and an stretchable image for the line. Google keywords: Texture2d, 2d texture drawing.
If you don't want to use OpenGL directly, Quartz 2D and / or CoreAnimation will drill down to OpenGL based drawing rather sooner than later.
HTH,
Thomas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden