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

Creating video surfaces

5
50%
3
30%
2
20%
 
Total votes : 10


Creating video surfaces

Postby Johan » Nov 10, 2002 @ 11:34pm

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Sam Nova » Nov 11, 2002 @ 12:23pm

How about:

dxsd.ddsCaps.dwCaps = DDSCAPS_TEXTURE | DDSCAPS_VIDEOMEMORY | DDSCAPS_SYSTEMMEMORY;

Will try to use video memory first, and if that fails then it will use system memory.

If the call is done ONLY with DDSCAPS_VIDEOMEMORY and that fails then it should return with an error and leave it to the programmer to do what he wants (possibly use the code that you showed).
Sam Nova
pm Member
 
Posts: 34
Joined: Mar 29, 2002 @ 11:02pm
Location: Switzerland


Postby Johan » Nov 11, 2002 @ 1:02pm

Hm. I'm not too keen on this one... It doesn't feel right to supply both flags. I've added a couple of new flags as well (local and non local video memory), so basically it could look like:

CreateSurface(GDSURFACE_VIDEOMEMORY | GDSURFACE_SYSTEMMEMORY | GDSURFACE_LOCALVIDMEM, ...)

Not too good...

Current flags are: GDSURFACE_CLEAR, GDSURFACE_NOCOORDCHECK, GDSURFACE_SYSTEMMEMORY, GDSURFACE_VIDEOMEMORY, GDSURFACE_LOCALVIDMEM, GDSURFACE_NONLOCALVIDMEM

Maybe another flag, like GDSURFACE_FALLBACKTOSYSMEM or similar? This would enable code like:

CreateSurface(GDSURFACE_VIDEOMEMORY | GDSURFACE_LOCALVIDMEM | GDSURFACE_FALLBACKTOSYSMEM, ...)
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Sam Nova » Nov 11, 2002 @ 1:06pm

Oh yeah. Looks VERY nice to me. Also makes more sense.
Sam Nova
pm Member
 
Posts: 34
Joined: Mar 29, 2002 @ 11:02pm
Location: Switzerland


Postby Guest » Nov 12, 2002 @ 8:43pm

Guest
 


Postby Johan » Nov 12, 2002 @ 8:47pm

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Digby » Nov 12, 2002 @ 10:50pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby Johan » Nov 12, 2002 @ 11:00pm

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Digby » Nov 13, 2002 @ 1:14am

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby Johan » Nov 13, 2002 @ 12:12pm

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Digby » Nov 13, 2002 @ 8:45pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby Johan » Nov 13, 2002 @ 9:54pm

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


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