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

Pointer related question


Pointer related question

Postby Volte6 » Feb 16, 2004 @ 7:21pm

Volte6
 


Postby Volte6 » Feb 16, 2004 @ 7:23pm

Volte6
 


Re: Pointer related question

Postby ruis » Feb 16, 2004 @ 7:49pm

User avatar
ruis
pm Member
 
Posts: 41
Joined: Nov 3, 2002 @ 5:00pm
Location: Sweden


Re: Pointer related question

Postby Pam » Feb 16, 2004 @ 8:01pm

All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby Volte6 » Feb 16, 2004 @ 8:08pm

Volte6
 


Postby Layre5150 » Feb 16, 2004 @ 8:18pm

Layre5150
pm Member
 
Posts: 21
Joined: Feb 13, 2004 @ 5:17pm


Postby Volte6 » Feb 16, 2004 @ 8:53pm

Well, I'm using the framework, as suggested in .

In theory it SHOULD work, I'd think. I still feel like it has something to do with the way i'm passing the backbuffer pointer to the move() method in the ball object.

I kept getting weird errors that I didn't understand though, saying things like it couldn't convert a **CGapiSurface to a *GapiSurface or something like that. I'll be sure to cut/paste the exact errors when I get back to my home PC, though.
User avatar
Volte6
pm Member
 
Posts: 77
Joined: Feb 16, 2004 @ 8:14pm


Postby ppcStudios » Feb 16, 2004 @ 9:38pm

If you're doing all of your drawing from within ProcessNextFrame(), the Flip is don't automagically for you.

Rather than passing a pointer to the backbuffer each call, I would recommend that you store the Display pointer when you create your ball object and then acquire the backbuffer from Display on each call. That way you are sure you get the correct backbuffer each call.

Also, always get the result code on your GD calls. I'm sure I don't need to remind everyone that they are there for a reason. For example:

HRESULT hr = pBackbuffer->BltFast(...); if(hr != GD_OK) return hr;
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 Volte6 » Feb 16, 2004 @ 9:57pm

User avatar
Volte6
pm Member
 
Posts: 77
Joined: Feb 16, 2004 @ 8:14pm


Postby ruis » Feb 16, 2004 @ 10:04pm

User avatar
ruis
pm Member
 
Posts: 41
Joined: Nov 3, 2002 @ 5:00pm
Location: Sweden


Postby ppcStudios » Feb 16, 2004 @ 10:32pm

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 Volte6 » Feb 16, 2004 @ 10:33pm

User avatar
Volte6
pm Member
 
Posts: 77
Joined: Feb 16, 2004 @ 8:14pm


Postby ppcStudios » Feb 16, 2004 @ 10:40pm

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 Layre5150 » Feb 16, 2004 @ 11:04pm

Layre5150
pm Member
 
Posts: 21
Joined: Feb 13, 2004 @ 5:17pm


Postby Volte6 » Feb 17, 2004 @ 12:04am

User avatar
Volte6
pm Member
 
Posts: 77
Joined: Feb 16, 2004 @ 8:14pm


Next

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

cron