This site is no longer active and is available for archival purposes only. Registration and login is disabled.

CGapiSurface::DrawLine doesn't clip?


CGapiSurface::DrawLine doesn't clip?

Postby mlepage » May 25, 2003 @ 6:50am

I wanted to use DrawLine to draw lines between vertices in my simple polygons. However, the polygons may be partly offscreen.

I thought that they would just clip off screen. However, I find that if either end point of the line is off screen, the line does not draw at all.

How can I get clipping behaviour?
mlepage
 


Clipping a Line

Postby mlepage » May 25, 2003 @ 7:07am

Don't worry, I know how to clip a line like I want, I have the Foley graphics book right beside me.

I just want to know if the library provides this functionality before I write my own line drawing functions that clip.
mlepage
 


Postby Johan » May 26, 2003 @ 9:27am

Hi,

GapiDraw does not clip anything. You have to this manually. This is by design and will not change in future versions of the library.
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Cohen-Sutherland Clipping Algorithm

Postby mlepage » May 26, 2003 @ 6:51pm

mlepage
 


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum