Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2003:
[Freeciv-Dev] Suggestion for sprite drawing in the gtk clients
Home

[Freeciv-Dev] Suggestion for sprite drawing in the gtk clients

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Suggestion for sprite drawing in the gtk clients
From: Andreas Kemnade <akemnade@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Apr 2003 08:17:55 +0200

Hi,

Here is a suggestion which should speedup the map drawing in the gtk clients,
I think drawing on X will not be negatively affected.

The key is  gdk_gc_set_function()
To draw a sprite
1. set the function to XOR
2. draw the pixmap
3. set the function to AND
4. draw the mask
5. set the function to XOR again
6. draw the pixmap again.


Greetings
Andreas Kemnade
PS: I cannot test that on win32.


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Suggestion for sprite drawing in the gtk clients, Andreas Kemnade <=