1 Dec 2002 08:00
Small Xr example
Owen Taylor <otaylor <at> redhat.com>
2002-12-01 07:00:06 GMT
2002-12-01 07:00:06 GMT
People may find the following example: http://people.redhat.com/otaylor/x/xr-knockout-example.c http://people.redhat.com/otaylor/x/xr-knockout-example.png useful. It contains: - The Xlib boilerplate needed to get a window up on the screen, handle exposes, etc. - Expose compression code. (needed pretty badly until we get a bit faster code for RENDER in the server) - A simple oval_path routine for drawing circles. - An example of using operators other than Over and Saturate The knockout in the name does not indicate that it's especially pretty; it just means that the example has to do with effects similar to knockout-groups in PDF-1.4. You can compile it with a makefile like: === CFLAGS=-I/opt/xf/include/ -Wall -O2 LIBS=-L/opt/xf/lib/ -lXr -lXc -lXft -lXrender -lXext -lX11 -lm xr-knockout-example: xr-knockout-example.o $(CC) -o $ <at> $< $(LIBS) === Regards,(Continue reading)
| I would like an idea if the Xr API was in any way a hinderence in this
| little activity.
|
| -keith
|
| *** xr-knockout-example.c.owen 2002-11-30 23:46:54.000000000 -0800
| --- xr-knockout-example.c 2002-11-30 23:46:27.000000000 -0800
[...]
| _______________________________________________
| Render mailing list
| Render <at> XFree86.Org
|
RSS Feed