From: Nuno L. <nt...@nl...> - 2004-08-10 10:01:07
|
No zips here, so you can download it from: http://quixote.planetaclix.pt/cofb.zip Regards, ~Nuno Lucas Nuno Lucas, dando pulos de alegria, escreveu : > After looking at the CoLinux FB demo (prototype?) I tried to make it > work with some of the ideas I had, but SDL doesn't seem to accept > transparent windows of any form (it seems the fault is that DirectX > doesn't cooperate very well with the basic GDI). > > I finally decided to start a project from scratch to test my ideas, and > this is result. > > Attached is the source code and two binaries. I used VS .NET only, so > it's normal that the code needs to be modified to build on mingw32. > > * cofb.exe is the FB viewer. If you start it before the driver you need > to attach it, using the menu command. > > * cofb_driver.exe is the driver. By default it creates a 640x480x24 > shared FB, but you can customize it by giving it the values desired > (only 16, 24 & 32 bpp, for now). > As an example: "cofb_driver 800 600 16". > > The program uses a 32 rects long queue for invalidating only partial > areas; has locking capabilities (only basic locking, for now); back > buffer for fast graphics (using directly the shared FB); random pixels > demo; random boxes demo; bouncing box demo & random position transparent > boxes. Also it's pure Win32 API, no MFC here. > > One thing I think I see is that with a modern video card (ATI Radeon > 9600 SE), it doesn't seem to have much difference updating all or part > of the window. You can check this by enabling all tests simultaneously > (random pixels mark all screen for refresh). > > Please take a look and feel free to give your opinion. > > NOTE: This it's only meant to work with Win2000/XP. > > Regards, > ~Nuno Lucas |