|
Desktop |
Simon Fischer
Member #7,567
July 2006
|
Is there a posibillity to draw direct onto the desktop? |
LennyLen
Member #5,313
December 2004
|
Quote: Is there a posibillity to draw direct onto the desktop? Not using allegro alone.
|
Andrei Ellman
Member #3,434
April 2003
|
Have a look at the following Allegro projects: Also worth looking at is this thread. I think there may be other threads that could help out, but I can't find them right now. Bear in mind that these methods are Windows only, and you'd have to code the means for drawing on other osses' desktops yourself. AE. -- |
BAF
Member #2,981
December 2002
|
Aggression just takes a screenshot of the desktop though. |
A J
Member #3,025
December 2002
|
Quote: Is there a posibillity to draw direct onto the desktop?
you can draw to a bitmap, then blit that on the desktop using allegro ___________________________ |
GullRaDriel
Member #3,861
September 2003
|
Take a look Here. Spellcaster explain how to read/write to the desktop, the code is from the link i gave.
"Code is like shit - it only smells if it is not yours" |
Johan Halmén
Member #1,550
September 2001
|
It would be fun with a game using the desktop. Imagine that you have some important files (documents and applications) on the desktop. Then comes a tank trying to destroy them and you control Mario, who tries to smash the tank with a baseball bat, before it destroys your files. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
GullRaDriel
Member #3,861
September 2003
|
It is called a playing Virus ;-p "Code is like shit - it only smells if it is not yours" |
deps
Member #3,858
September 2003
|
Speaking of virus. I once had a 3D game called virus. The player was driving around "inside the computer" blowing up evil worms. The game loaded images it found in subdirectories and displayed them on the walls. If i remember it correctly it also created the map to look like your directory tree. Edit: tried to find a link with screenshots. But found mostly pages about the Amiga game with the same name. And a lot more fun, imo. |
HoHo
Member #4,534
April 2004
|
Quote: Imagine that you have some important files (documents and applications) on the desktop. Then comes a tank trying to destroy them and you control Mario, who tries to smash the tank with a baseball bat, before it destroys your files.
Why settle with 2d when you can use 2.5D [edit] http://psdoom.sourceforge.net/ Now wouldn't that be a nice thing __________ |
axilmar
Member #1,204
April 2001
|
Quote: Is there a posibillity to draw direct onto the desktop? On Windows you can write to the desktop by obtaining the handle to it using the GetDesktopWindow() function, then the function GetDC() returns the device context of the desktop's client area. On X-Windows you can apply a similar technique, if I recall. |
Andrei Ellman
Member #3,434
April 2003
|
Johan Halmén said: It would be fun with a game using the desktop. Imagine that you have some important files (documents and applications) on the desktop. Then comes a tank trying to destroy them and you control Mario, who tries to smash the tank with a baseball bat, before it destroys your files. I recall a Windows screensaver that brought the desktop icons alive and had some creature trying to chase them, and if it caught an icon, it made a squeak and disappeared. In order to do such a thing, a program could peek in the user's desktop folder and global desktop folder and get the icons from all shortcuts that it finds (not sure how to get the icons off non-shortcut entities such as "My Computer" etc.). I think that the positions of each icon on the desktop are stored somewhere inside the registry. To make things even more interesting, if it was possible to find the area occupied by all windows and dialogs (I'm not sure if such a thing is possible - it might be disabled for security reasons, or maybe it is possible - who knows), the icons could be made to hide behind certain windows. If doing this, care would have to be taken with windows that use transparency-tricks to create irregular shapes with holes so that the icons hide behind the right parts of these windows. Of course, if you take translucent windows into account, things get even trickier. AE. -- |
Jakub Wasilewski
Member #3,653
June 2003
|
Quote:
The game loaded images it found in subdirectories and displayed them on the walls That's because there was too much pr0n on the walls and nobody wanted to make his interest in transformer sex public . --------------------------- |
|