Page 1 of 1
help

Posted:
Aug 19, 2002 @ 10:36pm
by McLaude
I'm a beginner and I dont quite understand the use of surfaces and bitmaps.
can anyone give me a simple code - just pasting a picture as the background, and another picture on it.
thanks.

Posted:
Aug 20, 2002 @ 8:55am
by artax
read lamothe

Posted:
Aug 20, 2002 @ 4:14pm
by jeremieweldin
Read Tricks of the windows game programming gurus (ISBN: 0672323699; 2nd edition) (amazon link below), or go to gamedev.net and look for directdraw tutorials.

Posted:
May 17, 2003 @ 7:29pm
by masChman

Posted:
May 17, 2003 @ 11:12pm
by Sm!rk
Define a surface then load the image into the surface with CreateSurface, depending on what sort of image you have will determine how you use CreateSurface; there are a few different methods. Then in your ProcessFrame method Blit that surface into the backbuffer.
In general:
[some init method]
GapiSurface surface;
surface.CreateSurface(...);
[some ProcessNextFrame method]
backbuffer.Blt(x, y, &surface, ...);
Thats just off the top of my head, some parameters and such may not be correct, and spelling.

Posted:
May 18, 2003 @ 1:43am
by ppcStudios

Posted:
May 18, 2003 @ 6:35am
by masChman

Posted:
May 18, 2003 @ 2:22pm
by ppcStudios
Minimal Sample

Posted:
May 18, 2003 @ 3:35pm
by CpuWhiz105

Posted:
May 18, 2003 @ 11:20pm
by Sm!rk

Posted:
May 22, 2003 @ 4:45pm
by masCh

Posted:
May 22, 2003 @ 4:53pm
by ppcStudios
There's a few tutorials on our website forums () that might help a bit. The GapiDraw samples are really the key to understanding it all though. You might want to pick up the book Pocket PC Game Programming by Jonathan Harbour. While its not GapiDraw specific, it might be a good starting point for you.