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