home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14647 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.5 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!zazen!doug.cae.wisc.edu!robios.me.wisc.edu!reznik
  2. From: reznik@robios.me.wisc.edu (Dan S. Reznik)
  3. Newsgroups: comp.windows.x
  4. Subject: Server Code for FillPolygon
  5. Message-ID: <REZNIK.92Jul30141125@robios2.me.wisc.edu>
  6. Date: 30 Jul 92 21:11:25 GMT
  7. Article-I.D.: robios2.REZNIK.92Jul30141125
  8. Distribution: comp.windows.x
  9. Organization: U. Wisconsin-Madison, Robotics Laboratory
  10. Lines: 28
  11.  
  12. Yo, net --
  13.  
  14. To tackle the client-server bottleneck which is particularly
  15. noticeable when one must draw hundreds of polygons per second,
  16. I am trying to do the following thing.
  17.  
  18. 1) Allocate an XImage whose data pointer points to an N x N buffer in
  19.    client's memory.
  20.  
  21. 2) I have written my own draw-pixel routine that operates
  22.    directly on my (char *) buffer.
  23.  
  24. 3) Every now and then I dump the N x N buffer through an XPutImage
  25.    command, preferably after having drawn hundreds of pixels.
  26.  
  27. Problem: I want to write, on top of my draw-pixel routine a
  28. 'fill-polygon' routine. I am curious to find out how this algm is
  29. implemented by the X-Server (go reverse-engineering :-) !!!).
  30.  
  31. Where in the mit distribution could I find such code ? I am assuming
  32. such code would appear on the server side since 'FillPolygon' is a
  33. valid packet on the ICCCM protocol.
  34.  
  35. Question: Has anyone tried to do what I am doing ? Is this a good idea ?
  36. Isn't it frustrating that Xlib doesn't provide a XFillPolygon*s*
  37. routine ??? Can anybody tell me why this was not done ???????
  38.  
  39. Dan Reznik, die-hard 3d-graphics X programmer
  40.