This site is no longer active and is available for archival purposes only. Registration and login is disabled.

help


help

Postby McLaude » Aug 19, 2002 @ 10:36pm

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.
McLaude
 


Postby artax » Aug 20, 2002 @ 8:55am

...only darkness can filter through...
User avatar
artax
pm Member
 
Posts: 43
Joined: Jun 27, 2002 @ 1:58pm
Location: The Netherlands


read lamothe

Postby jeremieweldin » Aug 20, 2002 @ 4:14pm

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.

jeremieweldin
 


Postby masChman » May 17, 2003 @ 7:29pm

masChman
 


Postby Sm!rk » May 17, 2003 @ 11:12pm

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.
User avatar
Sm!rk
pm Member
 
Posts: 172
Joined: Dec 16, 2002 @ 4:40pm


Postby ppcStudios » May 18, 2003 @ 1:43am

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby masChman » May 18, 2003 @ 6:35am

masChman
 


Postby ppcStudios » May 18, 2003 @ 2:22pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Minimal Sample

Postby CpuWhiz105 » May 18, 2003 @ 3:35pm

All men are created equal,
but geeks are a little more equal.
User avatar
CpuWhiz105
pm Member
 
Posts: 39
Joined: Feb 24, 2003 @ 8:33pm
Location: Colorado Springs, CO - U.S.A.


Postby Sm!rk » May 18, 2003 @ 11:20pm

User avatar
Sm!rk
pm Member
 
Posts: 172
Joined: Dec 16, 2002 @ 4:40pm


Postby masCh » May 22, 2003 @ 4:45pm

masCh
pm Member
 
Posts: 38
Joined: Oct 14, 2002 @ 6:43pm


Postby ppcStudios » May 22, 2003 @ 4:53pm

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.
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum