drawing in subwindows
    Jim Bennett 
    bennett at sgi.com
       
    Wed Aug 15 10:08:02 AEST 1990
    
    
  
margaret at cs.utah.edu (Malgorzata Sturgill) writes:
> Hi,
> 	I am trying to draw in subwindows ( open with swinopen ). I finally 
> managed to persuade my code to draw, but unfortunately it does not draw where 
> I expect. I have included a piece of code to ilustrate.
>
>			...
You just need to set the projection, for example:
	ortho2 (-0.5, 199.5, -0.5, 199.5);
after the call to reshapeviewport() in your redraw routine.  Then
it works like you would expect.
Jim
    
    
More information about the Comp.sys.sgi
mailing list