Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!maverick.ksu.ksu.edu!deimos.cis.ksu.edu!mccall.com!tp From: tp@mccall.com (Terry Poot) Newsgroups: comp.windows.x Subject: Re: porting unstructured graphics code to X Message-ID: <1991Feb27.073653@mccall.com> Date: 27 Feb 91 13:36:53 GMT References: <1991Feb25.212501.1776@yogi.fhhosp.ab.ca> <1991Feb26.092358@wsl.dec.com> Reply-To: tp@mccall.com (Terry Poot) Organization: The McCall Pattern Co., Manhattan, KS, USA Lines: 17 In article <1991Feb26.092358@wsl.dec.com>, klee@wsl.dec.com (Ken Lee) writes: >In article <1991Feb25.212501.1776@yogi.fhhosp.ab.ca>, >henry@yogi.fhhosp.ab.ca writes: >|> Is there any easy way to port the code so that I can just draw into >|> a window, and *not* have to worry about redrawing from Expose >events? > >Try using the X Toolkit, with the graphics encapsulated in a widget. >The X Toolkit will manage your expose events for you. Of course, you'd still have to write that widget. The other thing you could consider is using a higher level graphics package that will manage those low level considerations for you. Examples would be GKS and PHIGS. -- Terry Poot The McCall Pattern Company (uucp: ...!rutgers!ksuvax1!deimos!mccall!tp) 615 McCall Road (800)255-2762, in KS (913)776-4041 Manhattan, KS 66502, USA