Board index » delphi » Delphi and double-buffered graphics

Delphi and double-buffered graphics

I wanna do a simple Windows 95 or 98 game that works on most graphics
card. I need to have a 2D game background, an Alfa-channel (RGB values
mixed with background), and sprites, all double-buffered, with min 50Hz
update rate. Qs:

1. Is Delphi the way to go? Which version has the best gfx performance?
2. If so, how do I do it? Do I really have to mix RGB-pixels on a
Canvas, or can I hog the screen and access the gfxcard's videobuffers
directly?

Thanks for any help,
Henrik

 

Re:Delphi and double-buffered graphics


In article <35C84C0F.D2922...@windab.se>, Adam Wallsten
(adam.walls...@windab.se) says...

Quote
> I wanna do a simple Windows 95 or 98 game that works on most graphics
> card. I need to have a 2D game background, an Alfa-channel (RGB values
> mixed with background), and sprites, all double-buffered, with min 50Hz
> update rate. Qs:

> 1. Is Delphi the way to go? Which version has the best gfx performance?
> 2. If so, how do I do it? Do I really have to mix RGB-pixels on a
> Canvas, or can I hog the screen and access the gfxcard's videobuffers
> directly?

Delphi can do it. But so can C++ and assembly. Depending on what you
already know...
Since you want to work on "most graphics cards", there's not much chance
you can "access the gfxcard's videobuffers directly". Also, Windows
probably won't be to happy about that. It tends to want to control where
each app can draw...
But Direct/X might be the ticket. And there should be some conversions of
the Direct/X headers (which is mostly C or C++) in Delphi available on
DSP (http://sunsite.icm.edu.pl/delphi/).

M.

--
Ettertraktet kaffe, er det ekstra god kaffe?
mailto:martin.lars...@delfidata.no.NOSPAM
http://www.delfidata.no/users/~martin

Re:Delphi and double-buffered graphics


You need to use DirectX.

Headers and examples can be found on the Delphi Super Page.

Quote
Adam Wallsten wrote in message <35C84C0F.D2922...@windab.se>...

|I wanna do a simple Windows 95 or 98 game that works on most graphics
|card. I need to have a 2D game background, an Alfa-channel (RGB values
|mixed with background), and sprites, all double-buffered, with min 50Hz
|update rate. Qs:
|
|1. Is Delphi the way to go? Which version has the best gfx performance?
|2. If so, how do I do it? Do I really have to mix RGB-pixels on a
|Canvas, or can I hog the screen and access the gfxcard's videobuffers
|directly?
|
|Thanks for any help,
|Henrik
|

Other Threads