I Need Easy Code Example About Clipping Line

Hi
I need easy code some example about clipping line (( Function ClipSegment )) on running windows by visual c++ as soon as .

Thanks

Originally posted by e_xample2003:
[b]Hi
I need easy code some example about clipping line (( Function ClipSegment )) on running windows by visual c++ as soon as .

Thanks[/b]

Hi e_xample2003,

There’s a simple segment clipper in my recent shadow volume demo, available at: http://developer.nvidia.com/view.asp?IO=shadow_volume_intersection

See the routine called clip_segments().
It’s not the most efficient implementation in the world, but hopefully the code is reasonably clear.

Thanks,
Cass